/****************************************************************************** * Copyright (c) 2016 Oracle * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Konstantin Komissarchik - initial implementation and ongoing maintenance ******************************************************************************/ package org.eclipse.sapphire.samples.gallery; import org.eclipse.sapphire.Element; import org.eclipse.sapphire.ElementHandle; import org.eclipse.sapphire.ElementProperty; import org.eclipse.sapphire.ElementType; import org.eclipse.sapphire.ImpliedElementProperty; import org.eclipse.sapphire.Type; import org.eclipse.sapphire.Value; import org.eclipse.sapphire.ValueProperty; import org.eclipse.sapphire.modeling.xml.annotations.XmlBinding; /** * @author <a href="mailto:konstantin.komissarchik@oracle.com">Konstantin Komissarchik</a> */ public interface IValuePropertiesGallery extends Element { ElementType TYPE = new ElementType( IValuePropertiesGallery.class ); // *** WhitespaceHandlingGallery *** @Type( base = IWhitespaceHandlingGallery.class ) ImpliedElementProperty PROP_WHITESPACE_HANDLING_GALLERY = new ImpliedElementProperty( TYPE, "WhitespaceHandlingGallery" ); IWhitespaceHandlingGallery getWhitespaceHandlingGallery(); // *** DefaultValueGallery *** @Type( base = DefaultValueGallery.class ) @XmlBinding( path = "default-value" ) ImpliedElementProperty PROP_DEFAULT_VALUE_GALLERY = new ImpliedElementProperty( TYPE, "DefaultValueGallery" ); DefaultValueGallery getDefaultValueGallery(); // *** InitialValueGallery *** @Type( base = InitialValueGallery.class ) @XmlBinding( path = "initial-value" ) ElementProperty PROP_INITIAL_VALUE_GALLERY = new ElementProperty( TYPE, "InitialValueGallery" ); ElementHandle<InitialValueGallery> getInitialValueGallery(); // *** PossibleValuesGallery *** @Type( base = PossibleValuesGallery.class ) @XmlBinding( path = "possible-values" ) ImpliedElementProperty PROP_POSSIBLE_VALUES_GALLERY = new ImpliedElementProperty( TYPE, "PossibleValuesGallery" ); PossibleValuesGallery getPossibleValuesGallery(); // *** Color *** @Type( base = org.eclipse.sapphire.Color.class ) ValueProperty PROP_COLOR = new ValueProperty( TYPE, "Color" ); Value<org.eclipse.sapphire.Color> getColor(); void setColor( String value ); void setColor( org.eclipse.sapphire.Color value ); }