|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xnap.commons.gui.factory.DefaultFactory
public class DefaultFactory
| Field Summary | |
|---|---|
static String |
ENHANCED_TEXT_FIELD_MENU_KEY
|
| Constructor Summary | |
|---|---|
DefaultFactory()
|
|
| Method Summary | |
|---|---|
void |
addCompletionModeMenu(JMenu menu,
Completion completion)
Adds a completion mode menu as a sub menu to the menu. |
void |
addCompletionModeMenu(JTextComponent textComponent,
Completion completion)
Adds a completion mode menu to the text component which pops up when the platform dependent popup action is triggered. |
AbstractButton |
createButton(Action action)
Creates a button for an action. |
AbstractButton |
createCheckBox(ToggleAction action)
Creates a checkbox for a toggle action. |
AbstractButton |
createIconButton(Action action)
Creates an icon button for an action that only shows the icon and not the text of the action. |
JComponent |
createMenuItem(Action action)
Creates a menu item for an action making sure the right sized icon is used. |
AbstractButton |
createToolBarButton(Action action)
Creates a toolbar button for an action making sure the right sized icon is used. |
Object |
getProperty(Object key)
|
void |
setProperty(Object key,
Object value)
Sets a property of the factory to configure it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ENHANCED_TEXT_FIELD_MENU_KEY
| Constructor Detail |
|---|
public DefaultFactory()
| Method Detail |
|---|
public void addCompletionModeMenu(JTextComponent textComponent,
Completion completion)
Factory
addCompletionModeMenu in interface Factorycompletion - the completion object whose completion modes
are set by the menu
public void addCompletionModeMenu(JMenu menu,
Completion completion)
Factorymenu.
addCompletionModeMenu in interface Factorymenu - the menu into which the completion mode menu is pluggedcompletion - the completion object whose completion modes
are set by the menupublic AbstractButton createButton(Action action)
Factory
createButton in interface Factoryaction - the action
public AbstractButton createCheckBox(ToggleAction action)
Factory
createCheckBox in interface Factoryaction - the action
public AbstractButton createIconButton(Action action)
Factory
createIconButton in interface Factoryaction - the action
public AbstractButton createToolBarButton(Action action)
Factory
createToolBarButton in interface Factoryaction - the action
public JComponent createMenuItem(Action action)
Factory
createMenuItem in interface Factoryaction - the action
public Object getProperty(Object key)
public void setProperty(Object key,
Object value)
Factory
setProperty in interface Factorykey - the keyvalue - the value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||