|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jaxfront.swing.ui.tools.FormLayoutBuilder
public class FormLayoutBuilder
| Constructor Summary | |
|---|---|
FormLayoutBuilder()
|
|
| Method Summary | |
|---|---|
void |
addTab(Type type)
|
static javax.swing.JComponent |
addTableCell(java.awt.Container container,
Type model,
Type context,
TableCell cell,
javax.swing.JPanel tablePanel,
javax.swing.JComponent editingType)
|
static void |
addXPathLabelToVisualizer(javax.swing.JComponent labelComp,
Type cellRefType,
Type context)
|
static void |
applyFocus(java.awt.Container container,
javax.swing.JComponent focusComponent,
TableCell focusCell)
|
static javax.swing.JPanel |
applyTableLayout(java.awt.Container container,
Type model,
Type context,
FormLayoutInfo layout,
javax.swing.JPanel aComponentHolderPanel)
|
static javax.swing.JButton |
createButton(Type model,
java.lang.String buttonName,
java.lang.String actionClassString,
java.lang.String commandName)
Creates a new button with the given name and with the given action class. |
static javax.swing.JButton |
createButton(Type model,
java.lang.String buttonName,
java.lang.String actionClassString,
java.lang.String commandName,
java.lang.String ruleId)
Creates a new button with the given name and with the given action class. |
static java.awt.event.ActionListener |
getAction(Type model,
java.lang.Class actionClass)
Returns the action listener for a given action class name. |
static java.awt.event.ActionListener |
getAction(Type model,
java.lang.Class actionClass,
java.lang.String commandName)
Returns the action listener for a given action class name. |
Type |
getContext()
|
JAXDataTable |
getDataTable()
Returns internal tabel representation. |
javax.swing.JDialog |
getEditDialog(Type selectedType)
Returns the edit dialog for a given type. |
Visualizer |
getImplementation()
|
java.lang.String |
getLabelText()
Returns the label of this visualizer. |
ListType |
getListModel()
|
Type |
getModel()
Returns the model (type) of this visualizer. |
Type |
getSelectedType()
Gets the selected type of the underlying list type. |
boolean |
isViewReleased()
|
void |
jumpTo()
Bring this visualizer to front and set the focus. |
void |
markError()
Displays the error in a special way. |
void |
populateModel()
Updates the model (type) that belongs to this visualizer. |
void |
populateView()
Updates the view of this visualizer. |
void |
postInitialization()
Gets called after the UI factory has created this visualizer. |
void |
release()
Releases allocated resources for this visualizer. |
void |
removeLabel()
Removes the label from the view. |
void |
removeTab(Type type)
|
void |
resetError()
Removes the error from this visualizer. |
void |
resetView()
|
void |
selectType(Type type)
Selects the requested type in the list. |
void |
selectType(Type type,
boolean isUserAction)
Selects the requested type in the list. |
void |
setApplicationRequired(boolean required)
Sets the view component to be required or not defined by the application not by xml schema. |
void |
setEditable(boolean enabled)
Sets the view component editable . |
void |
setEnabled(boolean enabled)
Sets the view component enabled or disabled. |
void |
setLabelColor(java.awt.Color color)
Sets the foreground color for the label. |
void |
setLabelText(java.lang.String text)
Sets the label for this view |
void |
setModel(Type type)
Sets the model (type) for this visualizer. |
void |
setRequired(boolean required)
Sets the view component to be required or not. |
void |
setVisible(boolean visible)
Sets the view component visible or not visible. |
void |
showLabel(boolean show)
Sets the label of this visualizer visible or not visible. |
void |
showModel(Type type)
Shows the visualizer for the passed type within my list. |
void |
showUpDownButtons(boolean showUpDownButtons)
Sets the visibility of the up/down buttons for a list view. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormLayoutBuilder()
| Method Detail |
|---|
public static javax.swing.JPanel applyTableLayout(java.awt.Container container,
Type model,
Type context,
FormLayoutInfo layout,
javax.swing.JPanel aComponentHolderPanel)
public static void addXPathLabelToVisualizer(javax.swing.JComponent labelComp,
Type cellRefType,
Type context)
public static javax.swing.JComponent addTableCell(java.awt.Container container,
Type model,
Type context,
TableCell cell,
javax.swing.JPanel tablePanel,
javax.swing.JComponent editingType)
public static void applyFocus(java.awt.Container container,
javax.swing.JComponent focusComponent,
TableCell focusCell)
public static javax.swing.JButton createButton(Type model,
java.lang.String buttonName,
java.lang.String actionClassString,
java.lang.String commandName)
buttonName - a name for the new buttonactionClassString - the name of the action class for the new button
public static javax.swing.JButton createButton(Type model,
java.lang.String buttonName,
java.lang.String actionClassString,
java.lang.String commandName,
java.lang.String ruleId)
buttonName - a name for the new buttonactionClassString - the name of the action class for the new button
public static java.awt.event.ActionListener getAction(Type model,
java.lang.Class actionClass)
actionClass - an action class name
public static java.awt.event.ActionListener getAction(Type model,
java.lang.Class actionClass,
java.lang.String commandName)
actionClass - an action class name
public void addTab(Type type)
addTab in interface ListVisualizerpublic JAXDataTable getDataTable()
ListVisualizer
getDataTable in interface ListVisualizerpublic javax.swing.JDialog getEditDialog(Type selectedType)
ListVisualizer
getEditDialog in interface ListVisualizerselectedType - a given type
public Type getSelectedType()
ListVisualizer
getSelectedType in interface ListVisualizerpublic void removeTab(Type type)
removeTab in interface ListVisualizerpublic void resetView()
resetView in interface ListVisualizerpublic void selectType(Type type)
ListVisualizer
selectType in interface ListVisualizerpublic void showModel(Type type)
ListVisualizer
showModel in interface ListVisualizertype - to visualizepublic void showUpDownButtons(boolean showUpDownButtons)
ListVisualizer
showUpDownButtons in interface ListVisualizershowUpDownButtons - true if the buttons should be shownpublic Type getContext()
getContext in interface Visualizerpublic Visualizer getImplementation()
getImplementation in interface Visualizerpublic java.lang.String getLabelText()
Visualizer
getLabelText in interface Visualizerpublic Type getModel()
Visualizer
getModel in interface Visualizerpublic void jumpTo()
Visualizer
jumpTo in interface Visualizerpublic void markError()
Visualizer
markError in interface Visualizerpublic void populateModel()
Visualizer
populateModel in interface Visualizerpublic void populateView()
Visualizer
populateView in interface Visualizerpublic void postInitialization()
Visualizer
postInitialization in interface Visualizerpublic void release()
Visualizer
release in interface Visualizerpublic void removeLabel()
Visualizer
removeLabel in interface Visualizerpublic void resetError()
Visualizer
resetError in interface Visualizerpublic void setApplicationRequired(boolean required)
Visualizer
setApplicationRequired in interface Visualizerrequired - indicates if a visualizer required user inputpublic void setEditable(boolean enabled)
Visualizer
setEditable in interface Visualizerenabled - enable/disable this visualizerpublic void setEnabled(boolean enabled)
Visualizer
setEnabled in interface Visualizerenabled - enable/disable this visualizerpublic void setLabelColor(java.awt.Color color)
Visualizer
setLabelColor in interface Visualizercolor - label foreground colorpublic void setLabelText(java.lang.String text)
Visualizer
setLabelText in interface Visualizerpublic void setModel(Type type)
Visualizer
setModel in interface Visualizertype - model for the visualizerpublic void setRequired(boolean required)
Visualizer
setRequired in interface Visualizerrequired - indicates if a visualizer requires user inputpublic void setVisible(boolean visible)
Visualizer
setVisible in interface Visualizervisible - visibility of the visualizerpublic void showLabel(boolean show)
Visualizer
showLabel in interface Visualizershow - visibility of the labelpublic ListType getListModel()
getListModel in interface ListVisualizerpublic boolean isViewReleased()
isViewReleased in interface Visualizer
public void selectType(Type type,
boolean isUserAction)
ListVisualizer
selectType in interface ListVisualizer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||