|
artoflife pre0.1.0-dev | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--org.artoflife.gui.population.PopulationView | +--org.artoflife.gui.scope.PopulationPanel
Scope wrapper for org.artoflife.gui.paintable.view.PopulationView
fires a Control when an Individual is selected or double-clicked. Binds to a
Population
model property.
Field Summary |
Fields inherited from class org.artoflife.gui.population.PopulationView |
actionListener, currentDraggedIndividualRecord, currentDragSource, dragOffset, itemListener, population, populationRecords, positionPolicy, selection |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
PopulationPanel(RecordPositionPolicy positionPolicy)
Must create with a policy for positioning Individuals in the view. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent event)
|
java.lang.Object |
getBoundModel()
|
org.scopemvc.core.Controller |
getController()
|
org.scopemvc.core.Selector |
getSelector()
|
java.lang.Object |
getViewValue()
|
void |
issueControl(org.scopemvc.core.Control control)
|
void |
itemStateChanged(java.awt.event.ItemEvent event)
|
void |
refresh()
|
void |
setActionControlId(java.lang.String controlId)
|
void |
setBoundModel(java.lang.Object inModel)
|
void |
setController(org.scopemvc.core.Controller controller)
|
void |
setSelectControlId(java.lang.String controlId)
|
void |
setSelector(org.scopemvc.core.Selector inSelector)
|
void |
setSelectorString(java.lang.String inSelectorString)
Method setSelectorString. |
void |
updateFromProperty(java.lang.Object inValue,
boolean inReadOnly)
|
void |
validationFailed(java.lang.Exception inException)
|
void |
validationSuccess()
|
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PopulationPanel(RecordPositionPolicy positionPolicy)
PopulationView
Method Detail |
public final java.lang.Object getBoundModel()
getBoundModel
in interface org.scopemvc.core.View
View.getBoundModel()
public final void setBoundModel(java.lang.Object inModel)
setBoundModel
in interface org.scopemvc.core.View
View.setBoundModel(java.lang.Object)
public final org.scopemvc.core.Selector getSelector()
getSelector
in interface org.scopemvc.core.PropertyView
PropertyView.getSelector()
public final void setSelector(org.scopemvc.core.Selector inSelector)
setSelector
in interface org.scopemvc.core.PropertyView
PropertyView.setSelector(org.scopemvc.core.Selector)
public final void setSelectorString(java.lang.String inSelectorString)
inSelectorString
- public void updateFromProperty(java.lang.Object inValue, boolean inReadOnly)
updateFromProperty
in interface org.scopemvc.view.util.ModelBindable
inValue
- is a Population to view, or nullinReadOnly
- ignoredpublic java.lang.Object getViewValue()
getViewValue
in interface org.scopemvc.view.util.ModelBindable
ModelBindable.getViewValue()
public void validationFailed(java.lang.Exception inException)
validationFailed
in interface org.scopemvc.view.util.ModelBindable
ModelBindable.validationFailed(java.lang.Exception)
public void validationSuccess()
validationSuccess
in interface org.scopemvc.view.util.ModelBindable
ModelBindable.validationSuccess()
public void setController(org.scopemvc.core.Controller controller)
setController
in interface org.scopemvc.core.View
View.setController(org.scopemvc.core.Controller)
public org.scopemvc.core.Controller getController()
getController
in interface org.scopemvc.core.View
View.getController()
public void issueControl(org.scopemvc.core.Control control)
issueControl
in interface org.scopemvc.core.View
View.issueControl(org.scopemvc.core.Control)
public void refresh()
refresh
in interface org.scopemvc.view.swing.Refreshable
Refreshable.refresh()
public void setSelectControlId(java.lang.String controlId)
controlId
- the ID of Control issued when an image is selectedpublic void itemStateChanged(java.awt.event.ItemEvent event)
itemStateChanged
in interface java.awt.event.ItemListener
public void setActionControlId(java.lang.String controlId)
controlId
- the ID of Control issued when an image is double-clickedpublic void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
|
artoflife pre0.1.0-dev | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |