public class MarvinAttributesPanel extends Box
Box.AccessibleBox, Box.FillerJComponent.AccessibleJComponentContainer.AccessibleAWTContainer| 限定符和类型 | 字段和说明 |
|---|---|
protected Enumeration<MarvinPluginWindowComponent> |
enumComponents |
protected Hashtable<String,MarvinPluginWindowComponent> |
hashComponents |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| 构造器和说明 |
|---|
MarvinAttributesPanel() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addButtonGroup(String id,
String attrID,
MarvinAttributes attr)
Add ButtonGroup
|
void |
addCheckBox(String id,
String cbText,
String attrID,
MarvinAttributes attr)
Add CheckBox
|
void |
addComboBox(String id,
String attrID,
Object[] items,
MarvinAttributes attr)
Add ComboBox
|
void |
addHorizontalSlider(String id,
String attrID,
int min,
int max,
int value,
MarvinAttributes attr)
Add HorizontalSlider
|
void |
addImage(String id,
BufferedImage img)
Adds image
|
void |
addLabel(String id,
String text)
Adds label
|
void |
addMatrixPanel(String id,
String attrID,
MarvinAttributes attr,
int rows,
int columns) |
protected void |
addSlider(String id,
String attrID,
int orientation,
int a_min,
int a_max,
int a_value,
MarvinAttributes attr)
Add Slider
|
void |
addTextArea(String id,
String attrID,
int lines,
int columns,
MarvinAttributes attr) |
void |
addTextField(String id,
String attrID,
MarvinAttributes attr)
Adds TextField
|
void |
addVerticalSlider(String id,
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(String compID)
Returns a component by its id.
|
JPanel |
getCurrentComponentRow() |
JPanel |
getCurrentPanel()
This method is useful if the developer need to add an external component.
|
Object |
getValue(MarvinPluginWindowComponent plgComp) |
void |
newComponentRow()
Adds new component Line
|
void |
newComponentRow(LayoutManager layout) |
void |
plugComponent(JComponent comp) |
void |
plugComponent(String id,
JComponent comp,
String attrID,
MarvinAttributes attr,
MarvinPluginWindowComponent.ComponentType type)
Adds new component
|
Object |
stringToType(String value,
Object type)
Converts a string to the attribute type.
|
createGlue, createHorizontalBox, createHorizontalGlue, createHorizontalStrut, createRigidArea, createVerticalBox, createVerticalGlue, createVerticalStrut, getAccessibleContext, paintComponent, setLayoutaddAncestorListener, 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, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, 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, updateUIadd, add, add, add, add, addContainerListener, addImpl, 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, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, validate, validateTreeaction, 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, transferFocusUpCycleprotected Hashtable<String,MarvinPluginWindowComponent> hashComponents
protected Enumeration<MarvinPluginWindowComponent> enumComponents
public void newComponentRow()
public void newComponentRow(LayoutManager layout)
public JPanel getCurrentComponentRow()
public JPanel getCurrentPanel()
public void plugComponent(JComponent comp)
public void plugComponent(String id, JComponent comp, String attrID, MarvinAttributes attr, MarvinPluginWindowComponent.ComponentType type)
id - comp - attrID - attr - type - public MarvinPluginWindowComponent getComponent(String compID)
MarvinPluginWindowComponent - reference.public void addLabel(String id, String text)
id - component id.text - label text attribute.public void addImage(String id, BufferedImage img)
id - component id.img - image to be displayed.public void addTextField(String id, String attrID, MarvinAttributes attr)
id - component id.attrID - attribute id.attr - MarivnAttributes Object.public void addTextArea(String id, 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(String id, String attrID, Object[] items, MarvinAttributes attr)
id - component愀 id.attrID - attribute id.items - items array.attr - MarvinAttributes object.protected void addSlider(String id, String attrID, int orientation, int a_min, int a_max, int a_value, MarvinAttributes attr)
id - component id.attrID - attribute id.orientation - slider orientationa_min - minimum value.a_max - maximum value.a_value - initial value.attr - MarvinAttributes objectpublic void addHorizontalSlider(String id, 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(String id, 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(String id, String cbText, String attrID, MarvinAttributes attr)
id - component IDcbText - CheckBox text attributea_attirbuteID - attribute IDattr - MarvinAttributes objectpublic void addButtonGroup(String id, String attrID, MarvinAttributes attr)
public void addMatrixPanel(String id, String attrID, MarvinAttributes attr, int rows, int columns)
id - component IDattrID - attribute IDattr - MarvinAttributes objectrows - number of rowscolumns - number of columnspublic void applyValues()
public Object stringToType(String value, Object type)
value - attribute愀 value.type - attribute愀 type.public Object getValue(MarvinPluginWindowComponent plgComp)
plgComp - - graphical component;Copyright © 2018. All rights reserved.