|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.plugins.dnd.viewer.view.simple.AbstractView
org.nakedobjects.plugins.dnd.viewer.basic.PopupMenu
public class PopupMenu
| Field Summary |
|---|
| Fields inherited from interface org.nakedobjects.plugins.dnd.View |
|---|
HPADDING, VPADDING |
| Constructor Summary | |
|---|---|
PopupMenu(PopupMenuContainer parent)
|
|
| Method Summary | |
|---|---|
protected Color |
backgroundColor()
|
Consent |
canChangeValue()
Determines if the user is able to change the held value. |
boolean |
canFocus()
Determines whether this view accepts keyboard focus. |
protected Color |
disabledColor()
|
void |
draw(Canvas canvas)
Draws the popup menu |
void |
firstClick(Click click)
Called when the user clicks the mouse buttone within this view. |
void |
focusLost()
|
void |
focusReceived()
|
FocusManager |
getFocusManager()
|
Size |
getMaximumSize()
|
int |
getOption()
|
int |
getOptionCount()
|
int |
getOptionPostion()
|
Padding |
getPadding()
|
Workspace |
getWorkspace()
|
boolean |
hasFocus()
|
void |
keyPressed(KeyboardAction key)
Called when the user presses any key on the keyboard while this view has the focus. |
void |
keyReleased(int keyCode,
int modifiers)
Called when the user releases any key on the keyboard while this view has the focus. |
void |
keyTyped(char keyCode)
Called when the user presses a non-control key (i.e. |
View |
makeView(NakedObject object,
NakedObjectAssociation field)
|
void |
markDamaged()
|
void |
mouseMoved(Location at)
Called as the mouse is moved around within this view. |
protected Color |
normalColor()
|
protected Color |
reversedColor()
|
void |
setOption(int option)
|
protected Text |
style()
|
java.lang.String |
toString()
|
protected boolean |
transparentBackground()
|
| Methods inherited from class org.nakedobjects.plugins.dnd.viewer.view.simple.AbstractView |
|---|
addView, assignId, contains, containsFocus, contentMenuOptions, debug, debugStructure, dispose, drag, drag, dragCancel, dragFrom, dragIn, dragOut, dragStart, dragTo, drop, drop, editComplete, entered, exited, getAbsoluteLocation, getBaseline, getBounds, getContent, getFeedbackManager, getId, getLocation, getParent, getRequiredSize, getSize, getSpecification, getState, getSubviews, getView, getViewAxis, getViewManager, identify, invalidateContent, invalidateLayout, layout, limitBoundsWithin, limitBoundsWithin, markDamaged, mouseDown, mouseUp, objectActionResult, pickupContent, pickupView, print, refresh, removeView, replaceOptions, replaceView, secondClick, setBounds, setContent, setFocusManager, setLocation, setMaximumSize, setParent, setSize, setSpecification, setView, setViewAxis, subviewFor, thirdClick, update, updateView, viewAreaType, viewMenuOptions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PopupMenu(PopupMenuContainer parent)
| Method Detail |
|---|
protected Color backgroundColor()
public Consent canChangeValue()
View
canChangeValue in interface ViewcanChangeValue in class AbstractViewpublic boolean canFocus()
View
canFocus in interface ViewcanFocus in class AbstractViewprotected Color disabledColor()
public void draw(Canvas canvas)
draw in interface Viewdraw in class AbstractViewComponent.paint(java.awt.Graphics)public void firstClick(Click click)
View
firstClick in interface ViewfirstClick in class AbstractViewclick - the location within the current view where the mouse click took placepublic void focusLost()
focusLost in interface ViewfocusLost in class AbstractViewpublic void focusReceived()
focusReceived in interface ViewfocusReceived in class AbstractViewpublic FocusManager getFocusManager()
getFocusManager in interface ViewgetFocusManager in class AbstractViewpublic Size getMaximumSize()
getMaximumSize in interface ViewgetMaximumSize in class AbstractViewpublic int getOption()
public int getOptionPostion()
public int getOptionCount()
public Padding getPadding()
getPadding in interface ViewgetPadding in class AbstractViewpublic Workspace getWorkspace()
getWorkspace in interface ViewgetWorkspace in class AbstractViewpublic boolean hasFocus()
hasFocus in interface ViewhasFocus in class AbstractViewpublic void keyPressed(KeyboardAction key)
View
keyPressed in interface ViewkeyPressed in class AbstractViewkey - TODO
public void keyReleased(int keyCode,
int modifiers)
View
keyReleased in interface ViewkeyReleased in class AbstractViewpublic void keyTyped(char keyCode)
ViewkeyPressed and a subsequent call to
keyReleased.
keyTyped in interface ViewkeyTyped in class AbstractView
public View makeView(NakedObject object,
NakedObjectAssociation field)
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedExceptionpublic void markDamaged()
markDamaged in interface ViewmarkDamaged in class AbstractViewpublic void mouseMoved(Location at)
View
mouseMoved in interface ViewmouseMoved in class AbstractViewat - the position relative to the top-left of this viewprotected Color normalColor()
protected Color reversedColor()
public void setOption(int option)
protected Text style()
public java.lang.String toString()
toString in class AbstractViewprotected boolean transparentBackground()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||