| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--org.favabeans.views.DropSlot
A DropSlot is a simple view of a DnD-enabled model
 that contains one single operand. For this important subset of
 DnD-enabled objects, the DnDSourceContainer and
 DnDTargetContainer Facets of such an
 object can simply return the operand directly without having to
 know where the end-user is gesturing. In such cases, the programmer
 need not interact directly with the DragSourceAdapter and
 DropTargetAdapter functionality, and can deal with the 
 higher-level functionality described here.
 
A  DropSlot is suitable for use as a view component
 for simple "property editing" functions. The programmer supplies a
 model for a DropSlot, and the
 DropSlot uses the DnDSourceContainer and
 DnDTargetContainer Facets of this
 model for all operations. Note that this
 model could be a "real" model object from the
 application domain, or a "made-up" object serving merely to anchor
 the semantics of the visual operation of the DropSlot.
| Inner classes inherited from class javax.swing.JPanel | 
| JPanel.AccessibleJPanel | 
| Inner classes inherited from class javax.swing.JComponent | 
| JComponent.AccessibleJComponent | 
| Inner classes inherited from class java.awt.Container | 
| Container.AccessibleAWTContainer | 
| Inner classes inherited from class java.awt.Component | 
| Component.AccessibleAWTComponent | 
| 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 org.favabeans.views.AppearanceConstants | 
| BORDER_HIGHLIGHT_NONE, BORDER_HIGHLIGHT_STRONG, BORDER_HIGHLIGHT_WEAK, BORDER_THICKNESS_HIGHLIGHT_STRONG, BORDER_THICKNESS_HIGHLIGHT_WEAK, DROP_SLOT_DROP_AREA_GAP, DROP_SLOT_ICON_TEXT_GAP, EMPTY_VIEW_BACKGROUND, LABEL_BORDER_WIDTH_X, LABEL_BORDER_WIDTH_Y, LABEL_ICON_TEXT_GAP, LARGE_ICON_SIZE, SMALL_ICON_SIZE | 
| Fields inherited from interface java.awt.image.ImageObserver | 
| ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH | 
| Constructor Summary | |
| DropSlot() | |
| Method Summary | |
|  Object | getModel()Obtain the current model of this View. | 
|  boolean | isModelSettable(Object model)Check if the given value is an allowable argument to setModel(Object). | 
|  void | setModel(Object model)Set the model of this Viewto a new value. | 
| Methods inherited from class javax.swing.JPanel | 
| getAccessibleContext, getUIClassID, paramString, updateUI | 
| Methods inherited from class java.awt.Container | 
| add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface org.favabeans.base.View | 
| addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener | 
| Constructor Detail | 
public DropSlot()
| Method Detail | 
public boolean isModelSettable(Object model)
ViewView.setModel(Object). This should be overridden to provide
 end-user feedback regarding the correctness of a candidate
 model for this View, where such information is
 available to the implementation.
 The default behavior of this method is to return
 true, and throw an exception in View.setModel(Object) if necessary.
isModelSettable in interface Vieworg.favabeans.base.Viewmodel - the candidate model.false if the candidate model is known to
 be unacceptable; true otherwise.
public void setModel(Object model)
              throws PropertyValueException
ViewView to a new value.setModel in interface Vieworg.favabeans.base.Viewmodel - the new model.PropertyValueException - if the supplied model was not
 acceptable.public Object getModel()
ViewView.getModel in interface Vieworg.favabeans.base.View| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||