public abstract class BasicBuilder<T>
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
protected class  | 
BasicBuilder.Instructions
Instructions on exactly what to build 
 | 
| Modifier and Type | Field and Description | 
|---|---|
protected BasicBuilder.Instructions | 
instructions  | 
| Modifier | Constructor and Description | 
|---|---|
protected | 
BasicBuilder()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
buildToolbar(oracle.javatools.ui.builders.BuiltBasic builtBasic)  | 
protected abstract BasicBuilder.Instructions | 
createInstructions()  | 
void | 
setActions(javax.swing.Action... actions)
Add action(s) to the toolbar. 
 | 
void | 
setActionsSecondary(javax.swing.Action... actions)
Add additional (less important) action(s) to the component toolbar. 
 | 
void | 
setActionsSecondary(java.lang.String moreActionsText, javax.swing.Action... actions)
Add additional (less important) action(s) to the component toolbar. 
 | 
ListenableCollection<T> | 
setCheckable(java.util.Collection<T> initiallyCheckedItems)
Make the items in the component checkable. 
 | 
void | 
setDoubleClickListener(java.awt.event.ActionListener actionListener)
The given actionListener will be called when an item in the component is double clicked 
 | 
void | 
setEmptyText(java.lang.String emptyText)
Set the text to overlay on the component when the component is empty 
 | 
void | 
setEmptyTextLarge(java.lang.String emptyText)
Set the text to overlay on the component when the component is empty. 
 | 
void | 
setLabel(java.lang.String labelText)
Add a label (and a titlebar to contain it). 
The label text can optionally contain an '&' to mark the next character as a mnemonic which will be used as the shortcut for the component.  | 
void | 
setResizable(boolean resizable)
Allow the component to be resized in place by the user dragging the mouse. 
 | 
void | 
setRollover(boolean rollover)
Add rollover highlighting to the items 
 | 
void | 
setSelection(T... selection)
Set the item(s) that will be initially selected. 
 | 
void | 
setSelectionEnabledAction(javax.swing.Action action)
Disable the action when there is no selection, enable it when there is selection 
 | 
void | 
setSelectionEnabledComponent(javax.swing.JComponent component)
Components added to the builder with this method will be enabled and disabled as selection is gained or lost. 
 | 
void | 
setTitlebar(boolean titlebar)
Create a titlebar for the component, the titlebar can contain a label and toolbar 
There is no need to call this method in addition to label() or other builder methods that require a titlebar/toolbar.  | 
void | 
setToolbarComponents(javax.swing.JComponent... components)
Add components(s) to the toolbar. 
 | 
protected BasicBuilder.Instructions instructions
protected abstract BasicBuilder.Instructions createInstructions()
protected void buildToolbar(oracle.javatools.ui.builders.BuiltBasic builtBasic)
public void setResizable(boolean resizable)
resizable -public void setEmptyText(java.lang.String emptyText)
emptyText - the user visible text to displaypublic void setEmptyTextLarge(java.lang.String emptyText)
emptyText - the user visible text to displaypublic void setDoubleClickListener(java.awt.event.ActionListener actionListener)
actionListener -public void setLabel(java.lang.String labelText)
labelText -public void setTitlebar(boolean titlebar)
titlebar -public void setActions(javax.swing.Action... actions)
actions -public void setToolbarComponents(javax.swing.JComponent... components)
actions -public void setActionsSecondary(javax.swing.Action... actions)
actions -
public void setActionsSecondary(java.lang.String moreActionsText,
                       javax.swing.Action... actions)
moreActionsText - the name (including mnemonic) for the drop list button, or null to accept the defaultactions -public void setSelection(T... selection)
selection -public ListenableCollection<T> setCheckable(java.util.Collection<T> initiallyCheckedItems)
initiallyCheckedItems - the collection of checked items, initially it contains the starting items that should be checked.public void setRollover(boolean rollover)
rollover -public void setSelectionEnabledComponent(javax.swing.JComponent component)
component - a component to enable only when there is a selectionpublic void setSelectionEnabledAction(javax.swing.Action action)
action - an action to enable only when there is a selection