org.nakedobjects.viewer.classic.view
Class View
java.lang.Object
org.nakedobjects.viewer.classic.view.View
- Direct Known Subclasses:
- Cell, ClassIcon, CollectionElement, FieldIcon, Form, Icon, InstanceIcon, List, ObjectAttribute, ObjectElement, TableRow, Text
- public class View
- extends java.lang.Object
Method Summary |
void |
addOption(MenuOption option)
|
java.lang.String |
debugDetails()
|
void |
drawBackground(java.awt.Graphics g,
java.awt.Rectangle within,
ObjectViewer forViewer)
Draws the background of a view display by asking the background delegate
to draw itself using the coordinates and position provided. |
void |
drawBorder(java.awt.Graphics g,
java.awt.Rectangle within,
ObjectViewer forViewer)
Draws the border of a view display by asking the border delegate
to draw itself using the coordinates and position provided. |
void |
drawContent(java.awt.Graphics g,
java.awt.Rectangle within,
ObjectViewer forViewer)
Draws the content of a view display by asking the background and content delegates to draw themselves using the
coordinates and position provided. |
java.awt.Insets |
getBorderInsets(ObjectViewer viewer)
|
java.awt.Dimension |
getContentSize(ObjectViewer viewer)
|
java.awt.LayoutManager |
getLayout()
|
java.awt.Dimension |
getMiminumBorderSize(ObjectViewer viewer)
|
java.lang.String |
getName()
|
java.lang.String |
idString()
|
void |
init(NakedObject object,
ObjectViewer view,
Display display)
|
void |
menuOptions(MenuOptionSet menuOptionSet)
|
void |
setName(java.lang.String name)
|
java.lang.String |
toString()
|
void |
update(NakedInterfaceEvent evt,
ObjectViewer form,
Display display)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
View
public View(ViewBackground viewBackground,
ViewContent viewContent,
ViewBorder viewBorder,
java.awt.LayoutManager layout)
View
public View(ViewContent viewContent,
ViewBorder viewBorder)
addOption
public void addOption(MenuOption option)
debugDetails
public java.lang.String debugDetails()
drawBackground
public void drawBackground(java.awt.Graphics g,
java.awt.Rectangle within,
ObjectViewer forViewer)
- Draws the background of a view display by asking the background delegate
to draw itself using the coordinates and position provided.
- Parameters:
g
- the Graphics to do the drawing throughwithin
- the bounds to do the drawing withinforViewer
- the object viewer selected to create this view of the held object
drawBorder
public void drawBorder(java.awt.Graphics g,
java.awt.Rectangle within,
ObjectViewer forViewer)
- Draws the border of a view display by asking the border delegate
to draw itself using the coordinates and position provided.
- Parameters:
g
- the Graphics to do the drawing throughwithin
- the bounds to do the drawing withinforViewer
- the object viewer selected to create this view of the held object
drawContent
public void drawContent(java.awt.Graphics g,
java.awt.Rectangle within,
ObjectViewer forViewer)
- Draws the content of a view display by asking the background and content delegates to draw themselves using the
coordinates and position provided.
- Parameters:
g
- the Graphics to do the drawing throughwithin
- the bounds to do the drawing withinforViewer
- the object viewer selected to create this view of the held object
getBorderInsets
public java.awt.Insets getBorderInsets(ObjectViewer viewer)
getContentSize
public java.awt.Dimension getContentSize(ObjectViewer viewer)
getLayout
public java.awt.LayoutManager getLayout()
getMiminumBorderSize
public java.awt.Dimension getMiminumBorderSize(ObjectViewer viewer)
getName
public java.lang.String getName()
idString
public java.lang.String idString()
init
public void init(NakedObject object,
ObjectViewer view,
Display display)
menuOptions
public void menuOptions(MenuOptionSet menuOptionSet)
setName
public void setName(java.lang.String name)
toString
public java.lang.String toString()
update
public void update(NakedInterfaceEvent evt,
ObjectViewer form,
Display display)