Class FormBuilder
java.lang.Object
com.inductiveautomation.snap.ui.UIOwner<SwingEvent,JComponent>
 
com.inductiveautomation.snap.swing.SwingOwner
com.inductiveautomation.snap.swing.FormBuilder
A class to build a form.
- 
Field SummaryFields inherited from class com.inductiveautomation.snap.ui.UIOwnerDragDrop, DragEnter, DragEvents, DragExit, DragOver, KeyEvents, KeyFinished, KeyPressed, KeyReleased, KeyTyped, MouseClicked, MouseDragged, MouseEntered, MouseEvents, MouseExited, MouseFinished, MouseMoved, MousePressed, MouseReleased
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddComboBox(String aTitle, String[] options, String aDefault) Adds an option field.Adds a label.<T extends JComponent>
 TaddNode(T aComp) Adds a component.addRadioButton(String aTitle, String theText, boolean isSelected) Adds a radio button.addRadioButtons(String aTitle, String[] options, String aDefault) Adds radio buttons.Adds a separator.addTextField(String aTitle, String aDefault) Adds a text field.addTextField(String aTitle, String aDefault, int aWidth) Adds a text field.protected JComponentcreateUI()Creates the UI.protected ButtonGroupgetButtonGroup(String aName) Return the button group in this table for the given name (creating if needed).getFont()Returns the font.Returns the padding.intReturns the spacing between components.getStringValue(String aKey) Returns the specified value.Returns the specified value.protected voidrespondUI(SwingEvent anEvent) Responds to UI.voidSets the font.voidsetPadding(int aTp, int aLt, int aBt, int aRt) Sets the padding.voidsetPadding(Insets theInsets) Sets the padding.voidsetSpacing(int aValue) Sets the spacing between components.voidSets the specified value.booleanshowPanel(JComponent aComp, String aTitle, Icon anIcon) Runs the option panel and returns a map.Methods inherited from class com.inductiveautomation.snap.swing.SwingOwneraddKeyActionEvent, createTimer, createUI, createWindow, getNode, getNode, getNodeHelper, getTimer, getTimer, getUI, getWindow, isEventThread, isWindowVisible, requestFocus, requestFocusImpl, runLater, sendEvent, setWindowVisibleMethods inherited from class com.inductiveautomation.snap.ui.UIOwneraddNodeBinding, disableEvents, enableEvents, getBindingModelValue, getBindingNodeValue, getConversionMap, getConversionMapKey, getConversionMaps, getConversionMapValue, getFirstFocus, getModelValue, getNode, getNodeAction, getNodeBoolValue, getNodeFloatValue, getNodeIntValue, getNodeItemDisplayKey, getNodeItems, getNodeSelectedIndex, getNodeSelectedItem, getNodeStringValue, getNodeText, getNodeValue, getUI, getUIHpr, initUI, initUI, isNodeEnabled, isNodeValueAdjusting, isSendEventDisabled, isUISet, processResetUI, processRespondUI, resetLater, resetNodeBindings, resetUI, runLaterDelayed, runLaterOnce, sendEvent, sendNodeAction, setBindingModelValue, setBindingNodeValue, setFirstFocus, setModelValue, setNodeAction, setNodeEnabled, setNodeItemDisplayKey, setNodeItems, setNodeItems, setNodeSelectedIndex, setNodeSelectedItem, setNodeText, setNodeValue, setSendEventDisabled
- 
Constructor Details- 
FormBuilderpublic FormBuilder()
 
- 
- 
Method Details- 
getPaddingReturns the padding.
- 
setPaddingSets the padding.
- 
setPaddingpublic void setPadding(int aTp, int aLt, int aBt, int aRt) Sets the padding.
- 
getSpacingpublic int getSpacing()Returns the spacing between components.
- 
setSpacingpublic void setSpacing(int aValue) Sets the spacing between components.
- 
getFontReturns the font.
- 
setFontSets the font.
- 
addLabelAdds a label.
- 
addSeparatorAdds a separator.
- 
addTextFieldAdds a text field.
- 
addTextFieldAdds a text field.
- 
addComboBoxAdds an option field.
- 
addRadioButtonsAdds radio buttons.
- 
addRadioButtonAdds a radio button.
- 
addNodeAdds a component.
- 
showPanelRuns the option panel and returns a map.
- 
getValueReturns the specified value.
- 
setValueSets the specified value.
- 
getStringValueReturns the specified value.
- 
createUICreates the UI.- Overrides:
- createUIin class- SwingOwner
 
- 
respondUIResponds to UI.- Overrides:
- respondUIin class- UIOwner<SwingEvent,- JComponent> 
 
- 
getButtonGroupReturn the button group in this table for the given name (creating if needed).
 
-