public class MarvinAttributesPanel
extends javax.swing.Box
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
MarvinAttributesPanel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addButtonGroup(java.lang.String id,
java.lang.String attrID,
MarvinAttributes attr)
Add ButtonGroup
|
void |
addCheckBox(java.lang.String id,
java.lang.String cbText,
java.lang.String attrID,
MarvinAttributes attr)
Add CheckBox
|
void |
addComboBox(java.lang.String id,
java.lang.String attrID,
java.lang.Object[] items,
MarvinAttributes attr)
Add ComboBox
|
void |
addHorizontalSlider(java.lang.String id,
java.lang.String attrID,
int min,
int max,
int value,
MarvinAttributes attr)
Add HorizontalSlider
|
void |
addImage(java.lang.String id,
java.awt.image.BufferedImage img)
Adds image
|
void |
addLabel(java.lang.String id,
java.lang.String text)
Adds label
|
void |
addMatrixPanel(java.lang.String id,
java.lang.String attrID,
MarvinAttributes attr,
int rows,
int columns) |
void |
addTextArea(java.lang.String id,
java.lang.String attrID,
int lines,
int columns,
MarvinAttributes attr) |
void |
addTextField(java.lang.String id,
java.lang.String attrID,
MarvinAttributes attr)
Adds TextField
|
void |
addVerticalSlider(java.lang.String id,
java.lang.String attrID,
int min,
int max,
int value,
MarvinAttributes attr)
Add VerticalSlider
|
void |
applyValues()
Update the attributes´ value based on the associated components.
|
MarvinPluginWindowComponent |
getComponent(java.lang.String compID)
Returns a component by its id.
|
javax.swing.JPanel |
getCurrentComponentRow() |
javax.swing.JPanel |
getCurrentPanel()
This method is useful if the developer need to add an external component.
|
java.lang.Object |
getValue(MarvinPluginWindowComponent plgComp) |
void |
newComponentRow()
Adds new component Line
|
void |
newComponentRow(java.awt.LayoutManager layout) |
void |
plugComponent(javax.swing.JComponent comp) |
void |
plugComponent(java.lang.String id,
javax.swing.JComponent comp,
java.lang.String attrID,
MarvinAttributes attr,
MarvinPluginWindowComponent.ComponentType type)
Adds new component
|
java.lang.Object |
stringToType(java.lang.String value,
java.lang.Object type)
Converts a string to the attribute type.
|
createGlue, createHorizontalBox, createHorizontalGlue, createHorizontalStrut, createRigidArea, createVerticalBox, createVerticalGlue, createVerticalStrut, getAccessibleContext, setLayoutaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, 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, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, 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, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUIadd, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, validateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, 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, 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, transferFocusUpCyclepublic void newComponentRow()
public void newComponentRow(java.awt.LayoutManager layout)
public javax.swing.JPanel getCurrentComponentRow()
public javax.swing.JPanel getCurrentPanel()
public void plugComponent(javax.swing.JComponent comp)
public void plugComponent(java.lang.String id,
javax.swing.JComponent comp,
java.lang.String attrID,
MarvinAttributes attr,
MarvinPluginWindowComponent.ComponentType type)
id - comp - attrID - attr - type - public MarvinPluginWindowComponent getComponent(java.lang.String compID)
MarvinPluginWindowComponent - reference.public void addLabel(java.lang.String id,
java.lang.String text)
id - component id.text - label text attribute.public void addImage(java.lang.String id,
java.awt.image.BufferedImage img)
id - component id.img - image to be displayed.public void addTextField(java.lang.String id,
java.lang.String attrID,
MarvinAttributes attr)
id - component id.attrID - attribute id.attr - MarivnAttributes Object.public void addTextArea(java.lang.String id,
java.lang.String attrID,
int lines,
int columns,
MarvinAttributes attr)
id - - component id.attrID - - attribute id.lines - - number of lines.columns - - number of columns.attr - - MarivnAttributes Object.public void addComboBox(java.lang.String id,
java.lang.String attrID,
java.lang.Object[] items,
MarvinAttributes attr)
id - component´s id.attrID - attribute id.items - items array.attr - MarvinAttributes object.public void addHorizontalSlider(java.lang.String id,
java.lang.String attrID,
int min,
int max,
int value,
MarvinAttributes attr)
id - component ID.attrID - attribute ID.min - minimum value.max - maximum value.value - initial value.attr - MarvinAttributes objectpublic void addVerticalSlider(java.lang.String id,
java.lang.String attrID,
int min,
int max,
int value,
MarvinAttributes attr)
id - component IDattrID - attribute IDmin - minimum valuemax - maximum valuevalue - initial valueattr - MarvinAttributes objectpublic void addCheckBox(java.lang.String id,
java.lang.String cbText,
java.lang.String attrID,
MarvinAttributes attr)
id - component IDcbText - CheckBox text attributea_attirbuteID - attribute IDattr - MarvinAttributes objectpublic void addButtonGroup(java.lang.String id,
java.lang.String attrID,
MarvinAttributes attr)
public void addMatrixPanel(java.lang.String id,
java.lang.String attrID,
MarvinAttributes attr,
int rows,
int columns)
id - component IDattrID - attribute IDattr - MarvinAttributes objectrows - number of rowscolumns - number of columnspublic void applyValues()
public java.lang.Object stringToType(java.lang.String value,
java.lang.Object type)
value - attribute´s value.type - attribute´s type.public java.lang.Object getValue(MarvinPluginWindowComponent plgComp)
plgComp - - graphical component;