|
org.openide.loaders 6.7.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
org.openide.awt.ToolbarPool
public final class ToolbarPool
This class keeps track of the current toolbars and their names.
Nested Class Summary | |
---|---|
static interface |
ToolbarPool.Configuration
Abstract class for toolbar configuration |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static String |
DEFAULT_CONFIGURATION
Name of default toolbar configuration. |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
ToolbarPool(DataFolder df)
Creates a new ToolbarPool . |
Method Summary | |
---|---|
Toolbar |
findToolbar(String name)
Returns a Toolbar to which this pool maps the given name. |
AccessibleContext |
getAccessibleContext()
Read accessible context |
Border |
getBorder()
|
String |
getConfiguration()
Getter for the name of current configuration. |
String[] |
getConfigurations()
|
static ToolbarPool |
getDefault()
Returns default toolbar pool. |
DataFolder |
getFolder()
|
int |
getPreferredIconSize()
Gets preferred size of icons used by toolbar buttons. |
Toolbar[] |
getToolbars()
Returns the toolbars contained in this pool. |
void |
setConfiguration(String n)
Switch to toolbar configuration by specific config name |
void |
setPreferredIconSize(int preferredIconSize)
Sets preferred size of icons used by toolbar buttons. |
void |
setToolbarsListener(Toolbar.DnDListener l)
Sets DnDListener to all Toolbars. |
void |
waitFinished()
Allows to wait till the content of the pool is initialized. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_CONFIGURATION
Constructor Detail |
---|
public ToolbarPool(DataFolder df)
ToolbarPool
. Useful for modules that need they
own toolbars.
df
- the data folder to read toolbar definitions and configurations fromMethod Detail |
---|
public static ToolbarPool getDefault()
public int getPreferredIconSize()
public void setPreferredIconSize(int preferredIconSize) throws IllegalArgumentException
preferredIconSize
- size of toolbar icons in pixels; currently one of 16 or 24
IllegalArgumentException
- if an unsupported size is givenpublic Border getBorder()
getBorder
in class JComponent
public final void waitFinished()
public void setToolbarsListener(Toolbar.DnDListener l)
public final Toolbar findToolbar(String name)
Toolbar
to which this pool maps the given name.
name
- a String
that is to be a toolbar's name
Toolbar
to which this pool maps the namepublic final String getConfiguration()
public final void setConfiguration(String n)
n
- toolbar configuration namepublic final DataFolder getFolder()
DataFolder
from which the pool was created.public final Toolbar[] getToolbars()
public final String[] getConfigurations()
public AccessibleContext getAccessibleContext()
getAccessibleContext
in interface Accessible
getAccessibleContext
in class JComponent
|
org.openide.loaders 6.7.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |