|
||||||||||
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 ListVisualizer
public JAXDataTable getDataTable()
ListVisualizer
getDataTable
in interface ListVisualizer
public javax.swing.JDialog getEditDialog(Type selectedType)
ListVisualizer
getEditDialog
in interface ListVisualizer
selectedType
- a given type
public Type getSelectedType()
ListVisualizer
getSelectedType
in interface ListVisualizer
public void removeTab(Type type)
removeTab
in interface ListVisualizer
public void resetView()
resetView
in interface ListVisualizer
public void selectType(Type type)
ListVisualizer
selectType
in interface ListVisualizer
public void showModel(Type type)
ListVisualizer
showModel
in interface ListVisualizer
type
- to visualizepublic void showUpDownButtons(boolean showUpDownButtons)
ListVisualizer
showUpDownButtons
in interface ListVisualizer
showUpDownButtons
- true if the buttons should be shownpublic Type getContext()
getContext
in interface Visualizer
public Visualizer getImplementation()
getImplementation
in interface Visualizer
public java.lang.String getLabelText()
Visualizer
getLabelText
in interface Visualizer
public Type getModel()
Visualizer
getModel
in interface Visualizer
public void jumpTo()
Visualizer
jumpTo
in interface Visualizer
public void markError()
Visualizer
markError
in interface Visualizer
public void populateModel()
Visualizer
populateModel
in interface Visualizer
public void populateView()
Visualizer
populateView
in interface Visualizer
public void postInitialization()
Visualizer
postInitialization
in interface Visualizer
public void release()
Visualizer
release
in interface Visualizer
public void removeLabel()
Visualizer
removeLabel
in interface Visualizer
public void resetError()
Visualizer
resetError
in interface Visualizer
public void setApplicationRequired(boolean required)
Visualizer
setApplicationRequired
in interface Visualizer
required
- indicates if a visualizer required user inputpublic void setEditable(boolean enabled)
Visualizer
setEditable
in interface Visualizer
enabled
- enable/disable this visualizerpublic void setEnabled(boolean enabled)
Visualizer
setEnabled
in interface Visualizer
enabled
- enable/disable this visualizerpublic void setLabelColor(java.awt.Color color)
Visualizer
setLabelColor
in interface Visualizer
color
- label foreground colorpublic void setLabelText(java.lang.String text)
Visualizer
setLabelText
in interface Visualizer
public void setModel(Type type)
Visualizer
setModel
in interface Visualizer
type
- model for the visualizerpublic void setRequired(boolean required)
Visualizer
setRequired
in interface Visualizer
required
- indicates if a visualizer requires user inputpublic void setVisible(boolean visible)
Visualizer
setVisible
in interface Visualizer
visible
- visibility of the visualizerpublic void showLabel(boolean show)
Visualizer
showLabel
in interface Visualizer
show
- visibility of the labelpublic ListType getListModel()
getListModel
in interface ListVisualizer
public 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 |