|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.commons.gui.Builder
public class Builder
Constructor Summary | |
---|---|
Builder()
|
Method Summary | |
---|---|
static Completion |
addCompletion(JTextComponent textComponent)
Adds completion and a completion mode menu to a text component. |
static Completion |
addCompletion(JTextComponent textComponent,
CompletionModel model)
Adds completion and a completion mode menu to a text component. |
static Completion |
addCompletion(JTextComponent textComponent,
JMenu menu)
Adds completion and a completion mode menu to a text component. |
static Completion |
addCompletion(JTextComponent textComponent,
JMenu menu,
CompletionModel model)
Adds completion and a completion mode menu to a text component. |
static AbstractButton |
createButton(Action action)
|
static AbstractButton |
createCheckBox(ToggleAction action)
|
static AbstractButton |
createIconButton(Action action)
|
static JComponent |
createMenuItem(Action action)
|
static AbstractButton |
createToolBarButton(Action action)
|
static Factory |
getFactory()
Returns the factory used by the builder. |
static void |
setFactory(Factory factory)
Sets the factory that is used by the builder. |
static void |
setProperty(Object key,
Object value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Builder()
Method Detail |
---|
public static void setFactory(Factory factory)
factory
- can null
then the DefaultFactory
is set.public static Factory getFactory()
null
.
public static Completion addCompletion(JTextComponent textComponent)
Completion is done for the whole text of the component and not for the last word before the cursor.
The completion mode menu is added as context menu to the text component.
public static Completion addCompletion(JTextComponent textComponent, CompletionModel model)
Completion is done for the whole text of the component and not for the last word before the cursor.
The completion mode menu is added as context menu to the text component.
public static Completion addCompletion(JTextComponent textComponent, JMenu menu)
Completion is done for the whole text of the component and not for the last word before the cursor.
The completion mode menu is added as a submenu to the given menu.
public static Completion addCompletion(JTextComponent textComponent, JMenu menu, CompletionModel model)
Completion is done for the whole text of the component and not for the last word before the cursor.
The completion mode menu is added as a submenu to the given menu.
public static AbstractButton createButton(Action action)
public static AbstractButton createCheckBox(ToggleAction action)
public static AbstractButton createIconButton(Action action)
public static AbstractButton createToolBarButton(Action action)
public static JComponent createMenuItem(Action action)
public static void setProperty(Object key, Object value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |