public class StarterPanel
extends javax.swing.JLayeredPane
Modifier and Type | Class and Description |
---|---|
class |
StarterPanel.KillListener
Listener that is called on component kill.
|
javax.swing.JLayeredPane.AccessibleJLayeredPane
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JPanel |
apppanel
The application specific panel.
|
protected java.util.List |
argelems |
protected javax.swing.JPanel |
arguments
The component arguments.
|
protected javax.swing.JCheckBox |
autosdcb |
protected boolean |
closed |
protected javax.swing.JTextField |
componentname
The component type.
|
protected javax.swing.JLabel |
componentnamel |
protected javax.swing.JPanel |
componentpanel
The component specific panel.
|
protected javax.swing.JLabel |
confdummy |
protected javax.swing.JComboBox |
config
The configuration.
|
protected javax.swing.JLabel |
confl |
protected javax.swing.JComponent |
content
The content panel.
|
protected javax.swing.JCheckBox |
daemoncb |
protected jadex.commons.gui.BrowserPane |
details
The model details.
|
protected java.lang.String |
error
The error (last loading).
|
protected javax.swing.JTextField |
filename
The filename.
|
protected javax.swing.JLabel |
filenamel |
protected javax.swing.JCheckBox |
genname
The component name generator flag.
|
protected static javax.swing.UIDefaults |
icons
The image icons.
|
protected jadex.base.gui.plugin.IControlCenter |
jcc
The jcc.
|
protected double |
lastdivloc
The last divider location.
|
protected java.lang.String |
lastfile
The last loaded filename.
|
protected jadex.bridge.IResourceIdentifier |
lastrid |
protected java.lang.String[] |
loadargs
loaded from jccproject.xml and kept until gui is refreshed asynchronously.
|
protected java.lang.String |
loadconfig
loaded from jccproject.xml and kept until gui is refreshed asynchronously.
|
protected javax.swing.JComponent |
loading
The loading indicator.
|
protected java.lang.String |
loadname
loaded from jccproject.xml and kept until gui is refreshed asynchronously.
|
protected javax.swing.JCheckBox |
mastercb
The termination flags.
|
protected jadex.bridge.modelinfo.IModelInfo |
model
The model.
|
protected javax.swing.JComboBox |
monicb |
protected javax.swing.JSpinner |
numcomponents
The spinner for the number of components to start.
|
protected jadex.bridge.IComponentIdentifier |
parent
The selected parent (if any).
|
protected javax.swing.JTextField |
parenttf |
protected javax.swing.JCheckBox |
perscb |
protected javax.swing.JPanel |
providedservices
The provided services.
|
protected javax.swing.JPanel |
requiredservices
The used services.
|
protected java.util.List |
reselems |
protected javax.swing.JPanel |
results
The component results.
|
protected jadex.commons.collection.MultiCollection<java.lang.String,java.lang.Object> |
resultsets |
protected javax.swing.JComboBox |
selectavail |
protected jadex.commons.gui.JSplitPanel |
splitpanel
The split pane.
|
protected javax.swing.JButton |
start
The start button.
|
protected javax.swing.JCheckBox |
storeresults |
protected javax.swing.JCheckBox |
suspend
The suspend mode.
|
protected javax.swing.JCheckBox |
synccb |
DEFAULT_LAYER, DRAG_LAYER, FRAME_CONTENT_LAYER, LAYER_PROPERTY, MODAL_LAYER, PALETTE_LAYER, POPUP_LAYER
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
StarterPanel(jadex.base.gui.plugin.IControlCenter jcc)
Open the GUI.
|
Modifier and Type | Method and Description |
---|---|
protected void |
clearApplicationName()
Clear the application name.
|
protected void |
clearArguments()
Refresh the argument values.
|
protected void |
clearResults()
Clear the result values.
|
protected void |
createArgumentGui(jadex.bridge.modelinfo.IArgument arg,
int y)
Create the gui for one argument.
|
protected void |
createArguments()
Create the arguments panel.
|
static jadex.commons.future.IFuture |
createComponent(jadex.base.gui.plugin.IControlCenter jcc,
jadex.bridge.IResourceIdentifier rid,
java.lang.String type,
java.lang.String name,
java.lang.String configname,
java.util.Map arguments,
java.lang.Boolean suspend,
java.lang.Boolean master,
java.lang.Boolean daemon,
java.lang.Boolean autosd,
java.lang.Boolean sync,
java.lang.Boolean pers,
jadex.bridge.service.types.monitoring.IMonitoringService.PublishEventLevel moni,
jadex.commons.future.IResultListener killlistener,
jadex.bridge.IComponentIdentifier parco,
javax.swing.JComponent panel)
Create a new component on the platform.
|
protected void |
createProvidedServices()
Create the provided services panel.
|
protected void |
createRequiredServices()
Create the required services panel.
|
protected void |
createResultGui(jadex.bridge.modelinfo.IArgument arg,
int y)
Create the gui for one argument.
|
protected void |
createResults()
Create the results panel.
|
java.lang.String |
getDefaultValue(jadex.bridge.modelinfo.IModelInfo model,
java.lang.String arg,
java.lang.String config)
Get the default value for an argument.
|
jadex.commons.future.IFuture<jadex.commons.Properties> |
getProperties()
Get the properties.
|
java.lang.String |
getResultDefaultValue(jadex.bridge.modelinfo.IModelInfo model,
java.lang.String arg,
java.lang.String config)
Get the default value for a result.
|
jadex.commons.future.IFuture |
loadModel(java.lang.String adf,
jadex.bridge.IResourceIdentifier rid)
Load an component model.
|
protected void |
refreshArguments()
Refresh the argument values.
|
protected void |
refreshDefaultResults()
Refresh the default result values.
|
protected void |
refreshFlags()
Refresh the flags.
|
protected void |
refreshResults()
Refresh the result values.
|
void |
reloadModel()
Reload the model.
|
void |
reset()
Reset the gui.
|
protected void |
selectConfiguration(java.lang.String conf)
Select a configuration.
|
protected void |
setAutoGenerate(boolean autogen)
Set the auto generate in gui.
|
protected void |
setComponentName(java.lang.String name)
Set the component name.
|
void |
setParent(jadex.bridge.IComponentIdentifier parent)
Set the current parent.
|
jadex.commons.future.IFuture<java.lang.Void> |
setProperties(jadex.commons.Properties props)
Set the properties.
|
protected void |
setStartSuspended(boolean startsuspended)
Set the start suspended flag in gui.
|
protected void |
showLoading(jadex.commons.future.IFuture fut)
Show the loading panel and remove it when the future is done.
|
addImpl, getAccessibleContext, getComponentCountInLayer, getComponentsInLayer, getComponentToLayer, getIndexOf, getLayer, getLayer, getLayeredPaneAbove, getObjectForLayer, getPosition, highestLayer, insertIndexForLayer, isOptimizedDrawingEnabled, lowestLayer, moveToBack, moveToFront, paint, paramString, putLayer, remove, removeAll, setLayer, setLayer, setPosition
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected static final javax.swing.UIDefaults icons
protected jadex.bridge.modelinfo.IModelInfo model
protected java.lang.String error
protected java.lang.String lastfile
protected jadex.bridge.IResourceIdentifier lastrid
protected jadex.bridge.IComponentIdentifier parent
protected javax.swing.JTextField filename
protected javax.swing.JComboBox config
protected javax.swing.JTextField componentname
protected javax.swing.JLabel componentnamel
protected javax.swing.JTextField parenttf
protected javax.swing.JCheckBox suspend
protected javax.swing.JCheckBox mastercb
protected javax.swing.JCheckBox daemoncb
protected javax.swing.JCheckBox autosdcb
protected javax.swing.JCheckBox synccb
protected javax.swing.JCheckBox perscb
protected javax.swing.JComboBox monicb
protected javax.swing.JLabel confl
protected javax.swing.JLabel confdummy
protected javax.swing.JLabel filenamel
protected javax.swing.JCheckBox genname
protected javax.swing.JPanel arguments
protected java.util.List argelems
protected java.lang.String[] loadargs
protected java.lang.String loadconfig
protected java.lang.String loadname
protected javax.swing.JPanel results
protected java.util.List reselems
protected javax.swing.JCheckBox storeresults
protected javax.swing.JComboBox selectavail
protected jadex.commons.collection.MultiCollection<java.lang.String,java.lang.Object> resultsets
protected javax.swing.JButton start
protected javax.swing.JPanel componentpanel
protected javax.swing.JComponent content
protected javax.swing.JComponent loading
protected javax.swing.JPanel apppanel
protected jadex.base.gui.plugin.IControlCenter jcc
protected javax.swing.JSpinner numcomponents
protected javax.swing.JPanel requiredservices
protected javax.swing.JPanel providedservices
protected jadex.commons.gui.BrowserPane details
protected jadex.commons.gui.JSplitPanel splitpanel
protected double lastdivloc
protected boolean closed
public StarterPanel(jadex.base.gui.plugin.IControlCenter jcc)
starter
- The starter.public void reloadModel()
adf
- The adf.public jadex.commons.future.IFuture loadModel(java.lang.String adf, jadex.bridge.IResourceIdentifier rid)
adf
- The adf to load.protected void showLoading(jadex.commons.future.IFuture fut)
protected void refreshFlags()
public jadex.commons.future.IFuture<jadex.commons.Properties> getProperties()
props
- The properties.public jadex.commons.future.IFuture<java.lang.Void> setProperties(jadex.commons.Properties props)
props
- The propoerties.public void reset()
protected void selectConfiguration(java.lang.String conf)
conf
- The configuration.protected void refreshArguments()
protected void refreshDefaultResults()
protected void clearArguments()
protected void createArguments()
protected void refreshResults()
protected void clearResults()
protected void createResults()
protected void createArgumentGui(jadex.bridge.modelinfo.IArgument arg, int y)
arg
- The belief or belief reference.y
- The row number where to add.protected void createResultGui(jadex.bridge.modelinfo.IArgument arg, int y)
arg
- The belief or belief reference.y
- The row number where to add.protected void createRequiredServices()
protected void createProvidedServices()
protected void setComponentName(java.lang.String name)
name
- The name.protected void clearApplicationName()
name
- The name.protected void setAutoGenerate(boolean autogen)
autogen
- The autogen property.protected void setStartSuspended(boolean startsuspended)
startsuspended
- The start suspended flag property.public void setParent(jadex.bridge.IComponentIdentifier parent)
parent
- The component id.public static jadex.commons.future.IFuture createComponent(jadex.base.gui.plugin.IControlCenter jcc, jadex.bridge.IResourceIdentifier rid, java.lang.String type, java.lang.String name, java.lang.String configname, java.util.Map arguments, java.lang.Boolean suspend, java.lang.Boolean master, java.lang.Boolean daemon, java.lang.Boolean autosd, java.lang.Boolean sync, java.lang.Boolean pers, jadex.bridge.service.types.monitoring.IMonitoringService.PublishEventLevel moni, jadex.commons.future.IResultListener killlistener, jadex.bridge.IComponentIdentifier parco, javax.swing.JComponent panel)
public java.lang.String getDefaultValue(jadex.bridge.modelinfo.IModelInfo model, java.lang.String arg, java.lang.String config)
public java.lang.String getResultDefaultValue(jadex.bridge.modelinfo.IModelInfo model, java.lang.String arg, java.lang.String config)