public DockTheme create( DockController controller ) { if( control.getController() != controller ){ throw new IllegalArgumentException( "the supplied controller does not match the CControl" ); } return create( control ); }
/** * Returns the theme manager so the user interface of the dock can be * modified. * * @return the {@link ThemeManager}. */ public ThemeManager getThemeManager() { return control.getController().getThemeManager(); }
/** * Grants access to all the {@link Icon}s that are used within the realm of this * {@link CControl}. Clients are free to modify the set of icons. * @return the set of icons that are used */ public IconManager getIcons(){ return getController().getIcons(); }
/** * Grants access to all the {@link Icon}s that are used within the realm of this * {@link CControl}. Clients are free to modify the set of icons. * @return the set of icons that are used */ public IconManager getIcons(){ return getController().getIcons(); }
public DockTheme create( DockController controller ) { if( control.getController() != controller ){ throw new IllegalArgumentException( "the supplied controller does not match the CControl" ); } return create( control ); }
/** * Sets up all the default text that is used in the realm of this {@link CControl} * @param locale what language to use */ protected void initTexts( Locale locale ){ ResourceBundle bundleCore = ResourceBundle.getBundle( "data.bibliothek.gui.dock.core.locale.text", locale, DockController.class.getClassLoader() ); ResourceBundle bundleCommon = ResourceBundle.getBundle( "data.bibliothek.gui.dock.common.locale.common", locale, CControl.class.getClassLoader() ); List<ResourceBundle> list = getController().getTexts().loadExtensionBundles( locale ); ResourceBundle[] bundles = list.toArray( new ResourceBundle[ list.size() + 2 ] ); bundles[ bundles.length-2 ] = bundleCore; bundles[ bundles.length-1 ] = bundleCommon; getController().getTexts().setScheme( Priority.DEFAULT, new DefaultTextScheme( bundles ) ); }
/** * Creates a new control * @param restrictedEnvironment whether this application runs in a * restricted environment and is not allowed to listen for global events. * @deprecated it is not necessary to set the <code>restrictedEnvironment</code> parameter anymore, the framework * will choose a fitting value itself */ @Deprecated public CControl( boolean restrictedEnvironment ){ this( new NullWindowProvider() ); getController().setRestrictedEnvironment( restrictedEnvironment ); }
/** * Creates a new control * @param restrictedEnvironment whether this application runs in a * restricted environment and is not allowed to listen for global events. * @deprecated it is not necessary to set the <code>restrictedEnvironment</code> parameter anymore, the framework * will choose a fitting value itself */ @Deprecated public CControl( boolean restrictedEnvironment ){ this( new NullWindowProvider() ); getController().setRestrictedEnvironment( restrictedEnvironment ); }
/** * Removes all listeners this {@link DelayedWorkingAreaSetter} has added anywhere. */ public void uninstall(){ control.getController().getRegister().removeDockRegisterListener( this ); }
/** * Removes all listeners this {@link DelayedWorkingAreaSetter} has added anywhere. */ public void uninstall(){ control.getController().getRegister().removeDockRegisterListener( this ); }
@Override public void bind(){ super.bind(); text.setController( control.getController() ); }
@Override public void bind(){ super.bind(); text.setController( control.getController() ); }
public void setSelectedAndGetFocus() { UIManager.DOCKING_CONTROL.getController() .setFocusedDockable(new DefaultFocusRequest(dockable.intern(), this, false, true, false)); }
/** * Sets up all the default icons used in the realm of this {@link CControl}. */ protected void initIcons(){ DefaultIconScheme scheme = new DefaultIconScheme( getController(), new DefaultIconScheme.IconResource( "data/bibliothek/gui/dock/core/icons.ini", null, DockController.class.getClassLoader() ), new DefaultIconScheme.IconResource( "data/bibliothek/gui/dock/common/icons/icons.ini", null, CControl.class.getClassLoader() )); scheme.link( PropertyKey.DOCKABLE_ICON, "dockable.default" ); scheme.link( PropertyKey.DOCK_STATION_ICON, "dockStation.default" ); getController().getIcons().setScheme( Priority.DEFAULT, scheme ); }
/** * Sets up all the default icons used in the ralm of this {@link CControl}. */ protected void initIcons(){ DefaultIconScheme scheme = new DefaultIconScheme( getController(), new DefaultIconScheme.IconResource( "data/bibliothek/gui/dock/core/icons.ini", null, DockController.class.getClassLoader() ), new DefaultIconScheme.IconResource( "data/bibliothek/gui/dock/common/icons/icons.ini", null, CControl.class.getClassLoader() )); scheme.link( PropertyKey.DOCKABLE_ICON, "dockable.default" ); scheme.link( PropertyKey.DOCK_STATION_ICON, "dockStation.default" ); getController().getIcons().setScheme( Priority.DEFAULT, scheme ); }
public DockAction createCloseAction( final CDockable dockable ) { if( closeAction == null ){ CloseActionFactory factory = getController().getProperties().get( CLOSE_ACTION_FACTORY ); closeAction = factory.create( CControl.this, dockable ).intern(); } return closeAction; }
public DockAction createCloseAction( final CDockable dockable ) { if( closeAction == null ){ CloseActionFactory factory = getController().getProperties().get( CLOSE_ACTION_FACTORY ); closeAction = factory.create( CControl.this, dockable ).intern(); } return closeAction; }
/** * Sets up the {@link #locationManager}. */ private void initExtendedModes(){ locationManager = new CLocationModeManager( access ); HistoryRewriter<Location, CLocationMode> validation = new CStationContainerHistoryRewriter( this ); locationManager.setHistoryRewriter( new GroupingHistoryRewriter( this, validation )); GroupingDockLocationListener groupingListener = new GroupingDockLocationListener( this ); getController().getRegister().addDockRegisterListener( groupingListener ); getController().addDockableFocusListener( groupingListener ); initExternalizeArea(); }
/** * Creates a new model. * @param control the control whose settings this model represents */ public CLayoutPreferenceModel( CControl control ){ super( control.getController() ); add( tabPlacement = new TabPlacementPreference( control.intern().getDockProperties(), new Path( "dock.layout.tabplacement" ))); add( tabContentFilter = new TabContentFilterPreference( control.intern().getDockProperties(), new Path( "dock.layout.tabcontentfilter" ))); add( theme = new ThemePreference( control.intern().getDockProperties(), control.getThemes() )); }
/** * Creates a new model. * @param control the control whose settings this model represents */ public CLayoutPreferenceModel( CControl control ){ super( control.getController() ); add( tabPlacement = new TabPlacementPreference( control.intern().getDockProperties(), new Path( "dock.layout.tabplacement" ))); add( tabContentFilter = new TabContentFilterPreference( control.intern().getDockProperties(), new Path( "dock.layout.tabcontentfilter" ))); add( theme = new ThemePreference( control.intern().getDockProperties(), control.getThemes() )); }