public interface IGuiFactory
Used to create new instances of GUI API interfaces.
For a consistent UI and user experience it is strongly recommended to use extended components offered here whenever possible. Also these extended components
follow the user interface related settings.
You can mix extended components offered by the API and "basic" Swing components, but by using basic Swing components you'll lose the extra functionality
provided by the extended components - and future ones that will be added in the future.
For components that are initialized from setting values or are bound to them, please see ISettingsGui
.
IFactory
,
ISettingsGui
Modifier and Type | Method and Description |
---|---|
IAction |
newAction(IRIcon ricon,
java.lang.String text,
java.awt.event.ActionListener listener)
Creates a new
IAction . |
IAction |
newAction(IRIcon ricon,
java.lang.String text,
javax.swing.JComponent comp,
java.awt.event.ActionListener listener)
Creates a new
IAction . |
IAction |
newAction(javax.swing.KeyStroke keyStroke,
IRIcon ricon,
java.lang.String text,
java.awt.event.ActionListener listener)
Creates a new
IAction . |
IAction |
newAction(javax.swing.KeyStroke keyStroke,
IRIcon ricon,
java.lang.String text,
javax.swing.JComponent comp,
java.awt.event.ActionListener listener)
Creates a new
IAction . |
IBarCodeView |
newBarCodeView(int[] values,
java.awt.Color[] colors,
java.awt.Color[] selColors)
Creates a new
IBarCodeView to be used in ITable s as a cell value.The string value will be the properly formatted value. |
IBarCodeView |
newBarCodeView(int[] values,
java.awt.Color[] colors,
java.awt.Color[] selColors,
java.lang.String stringValue)
Creates a new
IBarCodeView to be used in ITable s as a cell value. |
IBorderPanel |
newBorderPanel()
Creates a new
IBorderPanel . |
IBorderPanel |
newBorderPanel(javax.swing.JComponent centerComp)
Creates a new
IBorderPanel . |
IBrowser |
newBrowser()
Creates a new
IBrowser . |
IPage<? extends IBrowser> |
newBrowserPage(java.lang.String displayName,
IRIcon ricon,
IRHtml rhtml)
|
IButton |
newButton()
Creates a new
IButton . |
IButton |
newButton(IAction action)
Creates a new
IButton . |
IButton |
newButton(javax.swing.Icon icon)
Creates a new
IButton . |
IButton |
newButton(java.lang.String text)
Creates a new
IButton . |
IButton |
newButton(java.lang.String text,
javax.swing.Icon icon)
Creates a new
IButton . |
ICheckBox |
newCheckBox()
Creates a new
ICheckBox . |
ICheckBox |
newCheckBox(java.lang.String text)
Creates a new
ICheckBox . |
ICheckBox |
newCheckBox(java.lang.String text,
boolean selected)
Creates a new
ICheckBox . |
ICheckBoxMenuItem |
newCheckBoxMenuItem()
Creates a new
ICheckBoxMenuItem . |
ICheckBoxMenuItem |
newCheckBoxMenuItem(javax.swing.Icon icon)
Creates a new
ICheckBoxMenuItem . |
ICheckBoxMenuItem |
newCheckBoxMenuItem(java.lang.String text)
Creates a new
ICheckBoxMenuItem . |
ICheckBoxMenuItem |
newCheckBoxMenuItem(java.lang.String text,
javax.swing.Icon icon)
Creates a new
ICheckBoxMenuItem . |
IColorIcon |
newColorIcon(java.awt.Color color)
Creates a new
IColorIcon . |
IColorIcon |
newColorIcon(java.awt.Color color,
int width,
int height)
Creates a new
IColorIcon . |
IColorIcon |
newColorIcon(java.awt.Color color,
int width,
int height,
java.lang.String text)
Creates a new
IColorIcon . |
IColorIcon |
newColorIcon(java.awt.Color color,
java.lang.String text)
Creates a new
IColorIcon . |
<E> IComboBox<E> |
newComboBox()
Creates a new
IComboBox . |
<E> IComboBox<E> |
newComboBox(E[] items)
Creates a new
IComboBox . |
<E> IComboBox<E> |
newComboBox(java.util.Vector<E> items)
Creates a new
IComboBox . |
IDialog |
newDialog(java.awt.Frame owner,
java.lang.Runnable closeTask)
Creates a new
IDialog with the specified parent frame. |
IDialog |
newDialog(java.lang.Runnable closeTask)
Creates a new
IDialog whose parent will be the main frame (IServices.getMainFrame() ). |
IFileChooser |
newFileChooser()
Creates a new
IFileChooser . |
IFileChooser |
newFileChooser(java.nio.file.Path currentFolder)
Creates a new
IFileChooser . |
IGridBagPanel |
newGridBagPanel()
Creates a new
IGridBagPanel . |
IHelpIcon |
newHelpIcon(IRHtml helpRhtml)
Creates a new
IHelpIcon . |
IHelpIcon |
newHelpIcon(IRHtml helpRhtml,
boolean stressed)
Creates a new
IHelpIcon . |
IIndicatorTextArea |
newIndicatorTextArea()
Creates a new
IIndicatorTextArea . |
IIndicatorTextArea |
newIndicatorTextArea(java.lang.String text)
Creates a new
IIndicatorTextArea . |
IIndicatorTextField |
newIndicatorTextField()
Creates a new
IIndicatorTextField . |
IIndicatorTextField |
newIndicatorTextField(java.lang.String text)
Creates a new
IIndicatorTextField . |
ILabel |
newLabel()
Creates a new
ILabel . |
ILabel |
newLabel(javax.swing.Icon icon)
Creates a new
ILabel . |
ILabel |
newLabel(java.lang.String text)
Creates a new
ILabel . |
ILabel |
newLabel(java.lang.String text,
javax.swing.Icon icon)
Creates a new
ILabel . |
ILabel |
newLabel(java.lang.String text,
javax.swing.Icon icon,
int halignment)
Creates a new
ILabel . |
ILabel |
newLabel(java.lang.String text,
int halignment)
Creates a new
ILabel . |
ILink |
newLink()
Creates a new
ILink with no URL and no target action. |
ILink |
newLink(java.lang.String text)
Creates a new
ILink with no URL or target action. |
ILink |
newLink(java.lang.String text,
Consumer<java.awt.event.MouseEvent> consumer)
|
ILink |
newLink(java.lang.String text,
java.net.URL url)
Creates a new
ILink which opens the specified URL in the user's default browser when clicked. |
ILink |
newLink(java.lang.String text,
java.net.URL url,
Consumer<java.awt.event.MouseEvent> consumer)
|
<E> IList<E> |
newList()
Creates a new
IList . |
IMenu |
newMenu()
Creates a new
IMenu . |
IMenu |
newMenu(javax.swing.Icon icon)
Creates a new
IMenu . |
IMenu |
newMenu(java.lang.String text)
Creates a new
IMenu . |
IMenu |
newMenu(java.lang.String text,
javax.swing.Icon icon)
Creates a new
IMenu . |
IMenuItem |
newMenuItem()
Creates a new
IMenuItem . |
IMenuItem |
newMenuItem(javax.swing.Icon icon)
Creates a new
IMenuItem . |
IMenuItem |
newMenuItem(java.lang.String text)
Creates a new
IMenuItem . |
IMenuItem |
newMenuItem(java.lang.String text,
javax.swing.Icon icon)
Creates a new
IMenuItem . |
IModestLabel |
newModestLabel()
Creates a new
IModestLabel . |
IModestLabel |
newModestLabel(java.lang.String text)
Creates a new
IModestLabel . |
IMultiPageComp |
newMultiPageComp(java.util.List<IPage<?>> pageList,
IPage<?> defaultPage,
javax.swing.JComponent rootComponent)
Creates a new
IMultiPageComp . |
IOverlayCard |
newOverlayCard(OverlayCardParams params,
IConfigPopupBuilder configPopupBuilder,
java.lang.Runnable closeTask)
Creates a new
IDialog with the specified parent frame. |
<T extends javax.swing.JComponent> |
newPage(java.lang.String displayName,
IRIcon ricon,
boolean closeable,
IPageCompCreator<T> pageCompCreator)
Creates a new
IPage . |
IPasswordField |
newPasswordField()
Creates a new
IPasswordField . |
IPasswordField |
newPasswordField(int columns)
Creates a new
IPasswordField . |
IPasswordField |
newPasswordField(java.lang.String text)
Creates a new
IPasswordField . |
IPasswordField |
newPasswordField(java.lang.String text,
int columns)
Creates a new
IPasswordField . |
IPathField |
newPathField()
Creates a new
IPathField in folder mode. |
IPathField |
newPathField(boolean fileMode)
Creates a new
IPathField in the specified mode. |
IPathField |
newPathField(java.nio.file.Path path)
Creates a new
IPathField in folder mode. |
IPathField |
newPathField(java.nio.file.Path path,
boolean fileMode)
Creates a new
IPathField in the specified mode. |
IPopupMenu |
newPopupMenu()
Creates a new
IPopupMenu . |
IPopupMenu |
newPopupMenu(ILabel titleLabel)
Creates a new
IPopupMenu . |
IPopupMenu |
newPopupMenu(java.lang.String text)
Creates a new
IPopupMenu . |
IPopupMenu |
newPopupMenu(java.lang.String text,
javax.swing.Icon icon)
Creates a new
IPopupMenu . |
IProgressBar |
newProgressBar()
Creates a new
IProgressBar . |
IProgressBarView |
newProgressBarView(int value,
int maximum)
Creates a new
IProgressBarView to be used in ITable s as a cell value.The string value will be the properly formatted value. |
IProgressBarView |
newProgressBarView(int value,
int maximum,
java.lang.String stringValue)
Creates a new
IProgressBarView to be used in ITable s as a cell value. |
<T> IRenderablePair<T> |
newRenderablePair(javax.swing.Icon icon,
T textProvider)
Creates a new IMMUTABLE
IRenderablePair . |
IRHtml |
newRHtml(java.lang.String title,
java.net.URL resource,
java.util.Set<java.lang.String> htmlParams,
java.lang.String... params)
Creates a new
IRHtml . |
IRHtml |
newRHtml(java.lang.String title,
java.net.URL resource,
java.lang.String... params)
Creates a new
IRHtml . |
IRIcon |
newRIcon(java.net.URL url)
Creates a new
IRIcon from the specified image location. |
IScrollPane |
newScrollPane()
Creates a new
IScrollPane with small preferred size. |
IScrollPane |
newScrollPane(java.awt.Component view)
Creates a new
IScrollPane with small preferred size. |
IScrollPane |
newScrollPane(java.awt.Component view,
boolean smallSize)
Creates a new
IScrollPane . |
IScrollPane |
newScrollPane(java.awt.Component view,
boolean smallSize,
boolean followScrollingSetting)
Creates a new
IScrollPane . |
ISpinner |
newSpinner()
Creates a new
ISpinner with an Integer SpinnerNumberModel with initial value 0 and no minimum or maximum limits. |
ISpinner |
newSpinner(javax.swing.SpinnerModel model)
Creates a new
ISpinner . |
ISplitPane |
newSplitPane()
Creates a new
ISplitPane using JSplitPane.HORIZONTAL_SPLIT orientation (the splitter will be vertical). |
ISplitPane |
newSplitPane(int orientation)
Creates a new
ISplitPane . |
IStatusLabel |
newStatusLabel()
Creates a new
IStatusLabel . |
IStatusLabel |
newStatusLabel(IStatusLabel.IStatusType type,
java.lang.String message)
Creates a new
IStatusLabel . |
ITabbedPane |
newTabbedPane()
Creates a new
ITabbedPane . |
ITable |
newTable()
Creates a new
ITable . |
ITemplateField |
newTemplateField()
Creates a new
ITemplateField with a template editor dialog opener button added. |
ITemplateField |
newTemplateField(boolean addDialogOpener)
Creates a new
ITemplateField . |
ITemplateField |
newTemplateField(java.lang.String template)
Creates a new
ITemplateField with a template editor dialog opener button added. |
ITemplateField |
newTemplateField(java.lang.String template,
boolean addDialogOpener)
Creates a new
ITemplateField . |
ITextArea |
newTextArea()
Creates a new
ITextArea . |
ITextArea |
newTextArea(java.lang.String text)
Creates a new
ITextArea . |
ITextArea |
newTextArea(java.lang.String text,
int rows,
int columns)
Creates a new
ITextArea . |
ITextField |
newTextField()
Creates a new
ITextField . |
ITextField |
newTextField(boolean clearByEsc)
Creates a new
ITextField . |
ITextField |
newTextField(int columns)
Creates a new
ITextField . |
ITextField |
newTextField(java.lang.String text)
Creates a new
ITextField . |
ITextField |
newTextField(java.lang.String text,
int columns)
Creates a new
ITextField . |
ITextField |
newTextField(java.lang.String text,
int columns,
boolean clearByEsc)
Creates a new
ITextField . |
ITipIcon |
newTipIcon(IRHtml tipRhtml)
Creates a new
ITipIcon . |
IToolBar |
newToolBar()
Creates a new
IToolBar . |
IToolBar |
newToolBar(boolean initialSpace)
Creates a new
IToolBar . |
IToolBarForList |
newToolBarForList(IList<?> list)
Creates a new
IToolBarForList . |
IToolBarForTable |
newToolBarForTable(ITable table)
Creates a new
IToolBarForTable . |
IToolBarForTree |
newToolBarForTree(ITree tree)
Creates a new
IToolBarForTree . |
ITree |
newTree(javax.swing.tree.TreeNode root)
Creates a new
ITree . |
ILabel newLabel(java.lang.String text)
ILabel
.text
- text of the labelILabel
ILabel newLabel(java.lang.String text, int halignment)
ILabel
.text
- text of the labelhalignment
- horizontal alignment; one of SwingConstants: LEFT, CENTER, RIGHT, LEADING or TRAILING
ILabel
ILabel newLabel(javax.swing.Icon icon)
ILabel
.icon
- icon of the labelILabel
ILabel newLabel(java.lang.String text, javax.swing.Icon icon)
ILabel
.text
- text of the labelicon
- icon of the labelILabel
ILabel newLabel(java.lang.String text, javax.swing.Icon icon, int halignment)
ILabel
.text
- text of the labelicon
- icon of the labelhalignment
- horizontal alignment; one of SwingConstants: LEFT, CENTER, RIGHT, LEADING or TRAILING
ILabel
IRIcon newRIcon(java.net.URL url)
IRHtml newRHtml(java.lang.String title, java.net.URL resource, java.lang.String... params)
IRHtml
.IRHtml newRHtml(java.lang.String title, java.net.URL resource, java.util.Set<java.lang.String> htmlParams, java.lang.String... params)
IRHtml
.title
- title of the HTML templateresource
- HTML template resourcehtmlParams
- collection of HTML param names, values of these parameters are treated as HTML and are not escapedparams
- param name - param value pairs to be substituted in the HTML template;"${"
and postpended with "}"
IRHtml
IRHtml
IHelpIcon newHelpIcon(IRHtml helpRhtml)
IHelpIcon
.helpRhtml
- html template resource of the help contentIHelpIcon
IHelpIcon newHelpIcon(IRHtml helpRhtml, boolean stressed)
IHelpIcon
.helpRhtml
- html template resource of the help contentstressed
- tells if the help icon's appearance should be garish, stressedIHelpIcon
ITipIcon newTipIcon(IRHtml tipRhtml)
ITipIcon
.tipRhtml
- html template resource of the tip contentITipIcon
ILink newLink(java.lang.String text, java.net.URL url)
ILink
which opens the specified URL in the user's default browser when clicked.text
- text of the linkurl
- URL
to be opened when clickedILink
ILink newLink(java.lang.String text, Consumer<java.awt.event.MouseEvent> consumer)
text
- text of the linkconsumer
- consumer to be called when clickedILink
ILink newLink(java.lang.String text, java.net.URL url, Consumer<java.awt.event.MouseEvent> consumer)
ILink
which forwards mouse click events to the specified Consumer
and opens the specified URL in the user's default browser
when clicked.text
- text of the linkurl
- URL
to be opened when clickedconsumer
- consumer to be called when clickedILink
IAction newAction(IRIcon ricon, java.lang.String text, java.awt.event.ActionListener listener)
IAction
.ricon
- optional ricon of the actiontext
- text of the actionlistener
- action listener to be called when action is performedIAction
IAction newAction(IRIcon ricon, java.lang.String text, javax.swing.JComponent comp, java.awt.event.ActionListener listener)
IAction
.ricon
- optional ricon of the actiontext
- text of the actioncomp
- component to bind the action's setting change listener to; basically in this case the lifetime of the scl will be bound to the specified
component's lifetimelistener
- action listener to be called when action is performedIAction
IAction newAction(javax.swing.KeyStroke keyStroke, IRIcon ricon, java.lang.String text, java.awt.event.ActionListener listener)
IAction
.keyStroke
- optional hotkey of the actionricon
- optional ricon of the actiontext
- text of the actionlistener
- action listener to be called when action is performedIAction
IAction newAction(javax.swing.KeyStroke keyStroke, IRIcon ricon, java.lang.String text, javax.swing.JComponent comp, java.awt.event.ActionListener listener)
IAction
.keyStroke
- optional hotkey of the actionricon
- optional ricon of the actiontext
- text of the actioncomp
- component to bind the action's setting change listener to; basically in this case the lifetime of the scl will be bound to the specified
component's lifetimelistener
- action listener to be called when action is performedIAction
IButton newButton(java.lang.String text)
IButton
.text
- text of the buttonIButton
IButton newButton(javax.swing.Icon icon)
IButton
.icon
- icon of the buttonIButton
IButton newButton(java.lang.String text, javax.swing.Icon icon)
IButton
.text
- text of the buttonicon
- icon of the buttonIButton
IButton newButton(IAction action)
IButton
.action
- action to configure the button fromIButton
ITextField newTextField()
ITextField
.ITextField
ITextField newTextField(boolean clearByEsc)
ITextField
.clearByEsc
- tells if text field should be cleared when the ESC key is pressedITextField
ITextField newTextField(java.lang.String text)
ITextField
.text
- initial text of the text fieldITextField
ITextField newTextField(int columns)
ITextField
.columns
- the number of columns to use to calculate the preferred width; if columns is set to zero, the preferred width will be whatever naturally
results from the component implementationITextField
ITextField newTextField(java.lang.String text, int columns)
ITextField
.text
- text of the check boxcolumns
- the number of columns to use to calculate the preferred width; if columns is set to zero, the preferred width will be whatever naturally
results from the component implementationITextField
ITextField newTextField(java.lang.String text, int columns, boolean clearByEsc)
ITextField
.text
- text of the check boxcolumns
- the number of columns to use to calculate the preferred width; if columns is set to zero, the preferred width will be whatever naturally
results from the component implementationclearByEsc
- tells if text field should be cleared when the ESC key is pressedITextField
IIndicatorTextField newIndicatorTextField()
IIndicatorTextField
.IIndicatorTextField
IIndicatorTextField newIndicatorTextField(java.lang.String text)
IIndicatorTextField
.text
- initial text to be setIIndicatorTextField
ITextArea newTextArea(java.lang.String text)
ITextArea
.text
- initial text of the text areaITextArea
ITextArea newTextArea(java.lang.String text, int rows, int columns)
ITextArea
.text
- initial text of the text arearows
- the number of rows to use to calculate the preferred heightcolumns
- the number of columns to use to calculate the preferred widthITextArea
IIndicatorTextArea newIndicatorTextArea()
IIndicatorTextArea
.IIndicatorTextArea
IIndicatorTextArea newIndicatorTextArea(java.lang.String text)
IIndicatorTextArea
.text
- initial text to be setIIndicatorTextArea
IBorderPanel newBorderPanel()
IBorderPanel
.IBorderPanel
IBorderPanel newBorderPanel(javax.swing.JComponent centerComp)
IBorderPanel
.centerComp
- component to be added to the centerIBorderPanel
IColorIcon newColorIcon(java.awt.Color color)
IColorIcon
.color
- color of the icon.IColorIcon
IColorIcon newColorIcon(java.awt.Color color, java.lang.String text)
IColorIcon
.color
- color of the icon.text
- text to be returned by the IColorIcon.toString()
methodIColorIcon
IColorIcon newColorIcon(java.awt.Color color, int width, int height)
IColorIcon
.color
- color of the icon.width
- width of the iconheight
- height of the iconIColorIcon
IColorIcon newColorIcon(java.awt.Color color, int width, int height, java.lang.String text)
IColorIcon
.color
- color of the icon.width
- width of the iconheight
- height of the icontext
- text to be returned by the IColorIcon.toString()
methodIColorIcon
IGridBagPanel newGridBagPanel()
IGridBagPanel
.IGridBagPanel
IModestLabel newModestLabel()
IModestLabel
.IModestLabel
IModestLabel newModestLabel(java.lang.String text)
IModestLabel
.text
- text of the labelIModestLabel
IFileChooser newFileChooser()
IFileChooser
.IFileChooser
IFileChooser newFileChooser(java.nio.file.Path currentFolder)
IFileChooser
.currentFolder
- default folder to navigate toIFileChooser
IPathField newPathField()
IPathField
in folder mode.IPathField
IPathField newPathField(boolean fileMode)
IPathField
in the specified mode.fileMode
- if true, the field operates as a file chooser; else as a folder chooserIPathField
IPathField newPathField(java.nio.file.Path path)
IPathField
in folder mode.path
- initial path to be setIPathField
IPathField newPathField(java.nio.file.Path path, boolean fileMode)
IPathField
in the specified mode.path
- initial path to be setfileMode
- if true, the field operates as a file chooser; else as a folder chooserIPathField
IStatusLabel newStatusLabel()
IStatusLabel
.IStatusLabel
IStatusLabel newStatusLabel(IStatusLabel.IStatusType type, java.lang.String message)
IStatusLabel
.type
- initial status type to be setmessage
- initial status message to be setIStatusLabel
ICheckBox newCheckBox(java.lang.String text)
ICheckBox
.text
- text of the check boxICheckBox
ICheckBox newCheckBox(java.lang.String text, boolean selected)
ICheckBox
.text
- text of the check boxselected
- initial selected stateICheckBox
IProgressBar newProgressBar()
IProgressBar
.IProgressBar
IScrollPane newScrollPane()
IScrollPane
with small preferred size.IScrollPane
IScrollPane newScrollPane(java.awt.Component view)
IScrollPane
with small preferred size.view
- the component to be scrolledIScrollPane
IScrollPane newScrollPane(java.awt.Component view, boolean smallSize)
IScrollPane
.view
- the component to be scrolledsmallSize
- tells if small preferred size is to be set to prefer vertical scrolling instead of horizontalIScrollPane
IScrollPane newScrollPane(java.awt.Component view, boolean smallSize, boolean followScrollingSetting)
IScrollPane
.view
- the component to be scrolledsmallSize
- tells if small preferred size is to be set to prefer vertical scrolling instead of horizontalfollowScrollingSetting
- tells if the vertical scrolling amount setting is to be followedIScrollPane
ISpinner newSpinner()
ISpinner
with an Integer
SpinnerNumberModel
with initial value 0 and no minimum or maximum limits.ISpinner
ISpinner newSpinner(javax.swing.SpinnerModel model)
ISpinner
.model
- model to create the spinner withISpinner
ISplitPane newSplitPane()
ISplitPane
using JSplitPane.HORIZONTAL_SPLIT
orientation (the splitter will be vertical).ISplitPane
ISplitPane newSplitPane(int orientation)
ISplitPane
.orientation
- orientation (JSplitPane.HORIZONTAL_SPLIT
or JSplitPane.VERTICAL_SPLIT
)ISplitPane
IToolBar newToolBar(boolean initialSpace)
IToolBar
.initialSpace
- tells if initial space component is to be addedIToolBar
<E> IComboBox<E> newComboBox()
IComboBox
.E
- type of the elements added to the combo boxIComboBox
<E> IComboBox<E> newComboBox(E[] items)
IComboBox
.E
- type of the elements added to the combo boxitems
- initial items to be added to the combo boxIComboBox
<E> IComboBox<E> newComboBox(java.util.Vector<E> items)
IComboBox
.E
- type of the elements added to the combo boxitems
- initial items to be added to the combo boxIComboBox
IProgressBarView newProgressBarView(int value, int maximum)
IProgressBarView
to be used in ITable
s as a cell value.value
- value for the progress barmaximum
- maximum value for the progress barIProgressBarView
newProgressBarView(int, int, String)
,
IProgressBarView
IProgressBarView newProgressBarView(int value, int maximum, java.lang.String stringValue)
IProgressBarView
to be used in ITable
s as a cell value.value
- value for the progress barmaximum
- maximum value for the progress barstringValue
- string value to be displayedIProgressBarView
newProgressBarView(int, int)
,
IProgressBarView
IBarCodeView newBarCodeView(int[] values, java.awt.Color[] colors, java.awt.Color[] selColors)
IBarCodeView
to be used in ITable
s as a cell value.values
- values of the parts of the bar codecolors
- colors of the parts of the bar codeselColors
- colors of the parts of the bar code when the cell is selectedIBarCodeView
java.lang.IllegalArgumentException
- if the number of values, colors and selected colors are not the samenewBarCodeView(int[], Color[], Color[], String)
,
IBarCodeView
IBarCodeView newBarCodeView(int[] values, java.awt.Color[] colors, java.awt.Color[] selColors, java.lang.String stringValue)
IBarCodeView
to be used in ITable
s as a cell value.values
- values of the parts of the bar codecolors
- colors of the parts of the bar codeselColors
- colors of the parts of the bar code when the cell is selectedstringValue
- string value to be displayedIBarCodeView
java.lang.IllegalArgumentException
- if the number of values, colors and selected colors are not the samenewBarCodeView(int[], Color[], Color[])
,
IBarCodeView
IToolBarForTable newToolBarForTable(ITable table)
IToolBarForTable
.table
- targeted table whose selection changes to listenIToolBarForTable
<E> IList<E> newList()
IList
.E
- type of the elements in the listIList
IToolBarForList newToolBarForList(IList<?> list)
IToolBarForList
.list
- targeted list whose selection changes to listenIToolBarForList
ITree newTree(javax.swing.tree.TreeNode root)
ITree
.root
- root nodeITree
IToolBarForTree newToolBarForTree(ITree tree)
IToolBarForTree
.tree
- targeted tree whose selection changes to listenIToolBarForTree
IMenu newMenu(java.lang.String text)
IMenu
.text
- text of the menuIMenu
IMenu newMenu(javax.swing.Icon icon)
IMenu
.icon
- icon of the menuIMenu
IMenu newMenu(java.lang.String text, javax.swing.Icon icon)
IMenu
.text
- text of the menuicon
- icon of the menuIMenu
IMenuItem newMenuItem(java.lang.String text)
IMenuItem
.text
- text of the menu itemIMenuItem
IMenuItem newMenuItem(javax.swing.Icon icon)
IMenuItem
.icon
- icon of the menu itemIMenuItem
IMenuItem newMenuItem(java.lang.String text, javax.swing.Icon icon)
IMenuItem
.text
- text of the menu itemicon
- icon of the menu itemIMenuItem
ICheckBoxMenuItem newCheckBoxMenuItem()
ICheckBoxMenuItem
.ICheckBoxMenuItem
ICheckBoxMenuItem newCheckBoxMenuItem(java.lang.String text)
ICheckBoxMenuItem
.text
- text of the check box menu itemICheckBoxMenuItem
ICheckBoxMenuItem newCheckBoxMenuItem(javax.swing.Icon icon)
ICheckBoxMenuItem
.icon
- icon of the check box menu itemICheckBoxMenuItem
ICheckBoxMenuItem newCheckBoxMenuItem(java.lang.String text, javax.swing.Icon icon)
ICheckBoxMenuItem
.text
- text of the check box menu itemicon
- icon of the check box menu itemICheckBoxMenuItem
IPasswordField newPasswordField()
IPasswordField
.IPasswordField
IPasswordField newPasswordField(java.lang.String text)
IPasswordField
.text
- initial text of the password fieldIPasswordField
IPasswordField newPasswordField(int columns)
IPasswordField
.columns
- the number of columns to use to calculate the preferred width; if columns is set to zero, the preferred width will be whatever naturally
results from the component implementationIPasswordField
IPasswordField newPasswordField(java.lang.String text, int columns)
IPasswordField
.text
- initial text of the password fieldcolumns
- the number of columns to use to calculate the preferred width; if columns is set to zero, the preferred width will be whatever naturally
results from the component implementationIPasswordField
IPopupMenu newPopupMenu()
IPopupMenu
.IPopupMenu
IPopupMenu newPopupMenu(java.lang.String text)
IPopupMenu
.text
- text of the popup titleIPopupMenu
IPopupMenu newPopupMenu(java.lang.String text, javax.swing.Icon icon)
IPopupMenu
.text
- text of the popup titleicon
- icon of the popup titleIPopupMenu
IPopupMenu newPopupMenu(ILabel titleLabel)
IPopupMenu
.titleLabel
- title label of the popupIPopupMenu
ITabbedPane newTabbedPane()
ITabbedPane
.ITabbedPane
<T extends javax.swing.JComponent> IPage<T> newPage(java.lang.String displayName, IRIcon ricon, boolean closeable, IPageCompCreator<T> pageCompCreator)
IPage
.T
- type of the page componentdisplayName
- display name of the pagericon
- ricon of the pagecloseable
- tells if the page is closeablepageCompCreator
- page component creatorIPage
IPage
,
IPageCompCreator
IPage<? extends IBrowser> newBrowserPage(java.lang.String displayName, IRIcon ricon, IRHtml rhtml)
IPage
which creates IBrowser
as page component to display the specified HTML resource.displayName
- display name of the pagericon
- icon resource of the pagerhtml
- HTML template resource to display as contentIPage
IMultiPageComp newMultiPageComp(java.util.List<IPage<?>> pageList, IPage<?> defaultPage, javax.swing.JComponent rootComponent)
IMultiPageComp
.pageList
- initial page list to be setdefaultPage
- optional page to select by default; if null
, the first page will be selectedrootComponent
- root component to register key strokes atIMultiPageComp
IMultiPageComp
,
newPage(String, IRIcon, boolean, IPageCompCreator)
ITemplateField newTemplateField()
ITemplateField
with a template editor dialog opener button added.ITemplateField
ITemplateField newTemplateField(java.lang.String template)
ITemplateField
with a template editor dialog opener button added.template
- initial template to be setITemplateField
ITemplateField newTemplateField(boolean addDialogOpener)
ITemplateField
.addDialogOpener
- tells if a template editor dialog opener button is to be addedITemplateField
ITemplateField newTemplateField(java.lang.String template, boolean addDialogOpener)
ITemplateField
.template
- initial template to be setaddDialogOpener
- tells if a template editor dialog opener button is to be addedITemplateField
IDialog newDialog(java.lang.Runnable closeTask)
IDialog
whose parent will be the main frame (IServices.getMainFrame()
).
The returned dialog is not yet made visible.
IDialog newDialog(java.awt.Frame owner, java.lang.Runnable closeTask)
IDialog
with the specified parent frame.
The returned dialog is not yet made visible.
IOverlayCard newOverlayCard(OverlayCardParams params, IConfigPopupBuilder configPopupBuilder, java.lang.Runnable closeTask)
IDialog
with the specified parent frame.
The returned overlay card is not yet made visible.
params
- overlay card parameters wrapperconfigPopupBuilder
- optional config popup builder, can be used to add custom items to the config popup (before it is displayed)closeTask
- optional close task to be run right before the overlay card is closedIDialog
IDialog
,
OverlayCardParams
,
IConfigPopupBuilder
<T> IRenderablePair<T> newRenderablePair(javax.swing.Icon icon, T textProvider)
IRenderablePair
.T
- type of the object providing the displayed texticon
- icon to be renderedtextProvider
- object providing the displayable text (acquired by Object.toString()
)IRenderablePair
IRenderablePair
This API documentation is public and is intended for / allowed to be used by anyone.
Scelight home page: https://sites.google.com/site/scelight/
Scelight is a trademark of András Belicza. Copyright © András Belicza, 2013-2015. All rights reserved.