/** * Gets the Combiner for <code>station</code>.<br> * This method should not be used directly, instead an {@link UIValue} of type {@link StationCombinerValue} should * be installed at the local {@link ThemeManager} to retrieve the value. * @param station the station whose combiner is searched * @return a combiner for <code>station</code> */ @FrameworkOnly public Combiner getCombiner( DockStation station );
/** * Gets the placeholder that is used for the {@link MultipleCDockable} with * unique identifier <code>id</code>. * @param id the unique identifer of a {@link MultipleCDockable} * @return the placeholder for that dockable */ public static Path getMultipleDockablePlaceholder( String id ){ return new Path( "dock", "multi", id ); }
private boolean contains( Path[] placeholders ){ for( Path path : placeholders ){ if( path.equals( placeholder )){ return true; } } return false; } });
public Dockable getFirst( Filter<Dockable> filter ){ for( Dockable dockable : history ){ if( filter.includes( dockable )){ return dockable; } } return null; }
@Override public int hashCode(){ final int prime = 31; int result = 1; result = prime * result + ((modeIdentifier == null) ? 0 : modeIdentifier.hashCode()); return result; }
/** * Gets whether the condition is met or not. * @return <code>true</code> if this font should be used */ public boolean getState(){ return condition.getState(); }
/** * A combination of {@link SharingDropDownItemAction} and {@link CommonDecoratableDockAction}, this interface * does not add any new methods or fields.<br> * {@link DockAction}s used by the {@link CDropDownItem} must implement this interface. * @author Benjamin Sigg */ @FrameworkOnly public interface CommonDropDownItem extends SharingDropDownItemAction, CommonDecoratableDockAction{ }
/** * Gets the placeholder that is used for the {@link SingleCDockable} with * unique identifier <code>id</code>. * @param id the unique identifer of a {@link SingleCDockable} * @return the placeholder for that dockable */ public static Path getSingleDockablePlaceholder( String id ){ return new Path( "dock", "single", id ); }
private boolean contains( Path[] placeholders ){ for( Path path : placeholders ){ if( path.equals( placeholder )){ return true; } } return false; } });
/** * Tells whether all children of this area are considered to be normalized. Clients should not * override this method.<br> * Note that if this method returns <code>false</code>, then the default {@link CSplitDockStationHandle} returned * by {@link #getModeManagerHandle()} will fail, clients <b>must</b> provide a custom implementation of * {@link CSplitDockStationHandle} if they override this method. * @return whether the children are normalized per default */ @FrameworkOnly protected boolean isNormalizingArea(){ return true; }
/** * Access to the object that represents <code>this</code> as {@link CNormalModeArea} and as * {@link CMaximizedModeArea}. * @return a representation of <code>this</code> as area */ @FrameworkOnly protected CSplitDockStationHandle getModeManagerHandle(){ return modeManagerHandle; }
/** * Informs this station by which perspective it is used. * @param perspective the perspective that uses this station or <code>null</code> */ @FrameworkOnly public void setPerspective( CPerspective perspective );
/** * Gets the control which is responsible for this dockable. Clients * should not use this method unless they know exactly what they are doing. * @return the control */ @FrameworkOnly public CControlAccess getControlAccess();
/** * Sets the group to which this button belongs. * @param group the group */ @FrameworkOnly void setGroup( CRadioGroup group ) { this.group = group; } }
/** * A combination of {@link SharingSelectableDockAction} and {@link CommonDockAction}, does not add * any new methods or fields.<br> * This is the interface a {@link DockAction} must implement if used by {@link CSelectableAction}. * @author Benjamin Sigg */ @FrameworkOnly public interface CommonSelectableAction extends CommonDropDownItem, SharingSelectableDockAction{ }
/** * Stops this controller. This controller has to remove any resources * it uses and has not to be useful any further.<br> * This method should no be called by clients */ @FrameworkOnly public abstract void kill(); }
/** * Gets the control which is responsible for this dockable. Clients * should not use this method unless they know exactly what they are doing. * @return the control */ @FrameworkOnly public CControlAccess getControlAccess();
/** * Gets the unique identifier that has been assigned to this {@link CDockable} by the {@link CControl}. Every * dockable has a unique identifier, but it may not be the same identifier as set by this client. * @return the unique identifier, it is set once this dockable is added to a {@link CControl} */ @FrameworkOnly protected String getDockableUniqueId(){ return uniqueId; }