/** * Only stations passing this test are considered during drag and drop operation as new parent. Subclasses * may override this method. * @param station the station to check * @return <code>true</code> if <code>station</code> should be considered as new parent */ @ClientOnly protected boolean isStationValid( DockStation station ){ return true; }
/** * Only stations passing this test are considered during drag and drop operation as new parent. Subclasses * may override this method. * @param station the station to check * @return <code>true</code> if <code>station</code> should be considered as new parent */ @ClientOnly protected boolean isStationValid( DockStation station ){ return true; }
/** * A {@link DockThemeModifier} modifies a {@link DockTheme}. This can either * mean replacing some values, or using another theme at all. * @author Benjamin Sigg */ @ClientOnly public interface DockThemeModifier { /** * Modifies <code>theme</code> and returns either the modified theme or * a new instance of of another {@link DockTheme}. * @param theme the theme to modify, not <code>null</code> * @return the modified them, <code>theme</code> or a new object */ public DockTheme modify( DockTheme theme ); }
/** * A {@link DockThemeModifier} modifies a {@link DockTheme}. This can either * mean replacing some values, or using another theme at all. * @author Benjamin Sigg */ @ClientOnly public interface DockThemeModifier { /** * Modifies <code>theme</code> and returns either the modified theme or * a new instance of of another {@link DockTheme}. * @param theme the theme to modify, not <code>null</code> * @return the modified them, <code>theme</code> or a new object */ public DockTheme modify( DockTheme theme ); }
/** * An implementation of {@link RenameAction} that can handle * {@link DefaultDockable DefaultDockables}. * @author Benjamin Sigg */ @ClientOnly public static class RenameDefaultDockable extends RenameAction{ /** * Creates a new action * @param controller the controller to which a listener will be added */ public RenameDefaultDockable( DockController controller ) { super( controller ); } @Override protected void rename( Dockable dock, String text ){ ((DefaultDockable)dock).setTitleText( text ); } } }
/** * An implementation of {@link RenameAction} that can handle * {@link SplitDockStation SplitDockStations}. * @author Benjamin Sigg */ @ClientOnly public static class RenameSplitDockStation extends RenameAction{ /** * Creates a new action * @param controller the controller to which a listener will be added */ public RenameSplitDockStation( DockController controller ) { super( controller ); } @Override protected void rename( Dockable dock, String text ){ ((SplitDockStation)dock).setTitleText( text ); } }
/** * An implementation of {@link RenameAction} that can handle * {@link StackDockStation StackDockStations}. * @author Benjamin Sigg */ @ClientOnly public static class RenameStackDockStation extends RenameAction{ /** * Creates a new action * @param controller the controller to which a listener will be added */ public RenameStackDockStation( DockController controller ) { super( controller ); } @Override protected void rename( Dockable dock, String text ){ ((StackDockStation)dock).setTitleText( text ); } }
/** * An implementation of {@link RenameAction} that can handle * {@link SplitDockStation SplitDockStations}. * @author Benjamin Sigg */ @ClientOnly public static class RenameSplitDockStation extends RenameAction{ /** * Creates a new action * @param controller the controller to which a listener will be added */ public RenameSplitDockStation( DockController controller ) { super( controller ); } @Override protected void rename( Dockable dock, String text ){ ((SplitDockStation)dock).setTitleText( text ); } }
/** * An implementation of {@link RenameAction} that can handle * {@link StackDockStation StackDockStations}. * @author Benjamin Sigg */ @ClientOnly public static class RenameStackDockStation extends RenameAction{ /** * Creates a new action * @param controller the controller to which a listener will be added */ public RenameStackDockStation( DockController controller ) { super( controller ); } @Override protected void rename( Dockable dock, String text ){ ((StackDockStation)dock).setTitleText( text ); } }
/** * An implementation of {@link RenameAction} that can handle * {@link FlapDockStation FlapDockStations}. * @author Benjamin Sigg */ @ClientOnly public static class RenameFlapDockStation extends RenameAction{ /** * Creates a new action * @param controller the controller to which a listener will be added */ public RenameFlapDockStation( DockController controller ) { super( controller ); } @Override protected void rename( Dockable dock, String text ){ ((FlapDockStation)dock).setTitleText( text ); } }
/** * An implementation of {@link RenameAction} that can handle * {@link FlapDockStation FlapDockStations}. * @author Benjamin Sigg */ @ClientOnly public static class RenameFlapDockStation extends RenameAction{ /** * Creates a new action * @param controller the controller to which a listener will be added */ public RenameFlapDockStation( DockController controller ) { super( controller ); } @Override protected void rename( Dockable dock, String text ){ ((FlapDockStation)dock).setTitleText( text ); } }
/** * An implementation of {@link RenameAction} that can handle * {@link DefaultDockable DefaultDockables}. * @author Benjamin Sigg */ @ClientOnly public static class RenameDefaultDockable extends RenameAction{ /** * Creates a new action * @param controller the controller to which a listener will be added */ public RenameDefaultDockable( DockController controller ) { super( controller ); } @Override protected void rename( Dockable dock, String text ){ ((DefaultDockable)dock).setTitleText( text ); } } }
@ClientOnly public interface CColorBridgeExtension {
@ClientOnly public interface CColorBridgeExtension {
@ClientOnly public class SplitDockFullScreenProperty extends AbstractDockableProperty { public DockableProperty copy(){
@ClientOnly public class SplitDockFullScreenProperty extends AbstractDockableProperty { public DockableProperty copy(){
@ClientOnly public class FreeMenuPiece extends BaseMenuPiece{
@ClientOnly public class FreeMenuPiece extends BaseMenuPiece{
/** * Sets an algorithm that is used to paint the background of items which register an {@link UIValue} with * an identifier of <code>id</code>. Valid identifier can be, but are not restricted to: * <ul> * <li>{@value #BACKGROUND_PAINT}.action</li> * <li>{@value #BACKGROUND_PAINT}.displayer</li> * <li>{@value #BACKGROUND_PAINT}.dockable</li> * <li>{@value #BACKGROUND_PAINT}.station.flap</li> * <li>{@value #BACKGROUND_PAINT}.station.flap.window</li> * <li>{@value #BACKGROUND_PAINT}.station.screen</li> * <li>{@value #BACKGROUND_PAINT}.station.split</li> * <li>{@value #BACKGROUND_PAINT}.station.stack</li> * <li>{@value #BACKGROUND_PAINT}.tabPane</li> * <li>{@value #BACKGROUND_PAINT}.tabPane.child.menu</li> * <li>{@value #BACKGROUND_PAINT}.tabPane.child.tab</li> * <li>{@value #BACKGROUND_PAINT}.title</li> * </ul> * @param id the identifier of the items that should use <code>value</code> * @param value the new background algorithm, can be <code>null</code> */ @ClientOnly public void setBackgroundPaint( String id, BackgroundPaint value ){ put( Priority.CLIENT, id, BACKGROUND_PAINT_TYPE, value ); }
/** * Sets an algorithm that is used to paint the background of items which register an {@link UIValue} with * an identifier of <code>id</code>. Valid identifier can be, but are not restricted to: * <ul> * <li>{@value #BACKGROUND_PAINT}.action</li> * <li>{@value #BACKGROUND_PAINT}.displayer</li> * <li>{@value #BACKGROUND_PAINT}.dockable</li> * <li>{@value #BACKGROUND_PAINT}.station.flap</li> * <li>{@value #BACKGROUND_PAINT}.station.flap.window</li> * <li>{@value #BACKGROUND_PAINT}.station.screen</li> * <li>{@value #BACKGROUND_PAINT}.station.split</li> * <li>{@value #BACKGROUND_PAINT}.station.stack</li> * <li>{@value #BACKGROUND_PAINT}.tabPane</li> * <li>{@value #BACKGROUND_PAINT}.tabPane.child.menu</li> * <li>{@value #BACKGROUND_PAINT}.tabPane.child.tab</li> * <li>{@value #BACKGROUND_PAINT}.title</li> * </ul> * @param id the identifier of the items that should use <code>value</code> * @param value the new background algorithm, can be <code>null</code> */ @ClientOnly public void setBackgroundPaint( String id, BackgroundPaint value ){ put( Priority.CLIENT, id, BACKGROUND_PAINT_TYPE, value ); }