|
|||||||||
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.ocd.dcf.DCComponent | +--org.ocd.dcf.DCTile
<< License Info Goes HERE >> All Rights Reserved. Tile Description:
Inner classes inherited from class org.ocd.dcf.DCComponent |
DCComponent.DesktopWindow |
Inner classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
Field Summary | |
protected javax.swing.Action |
action
|
protected java.awt.Image |
backgroundImage
|
protected javax.swing.ImageIcon |
busyIcon
Icon used to show Tile is Busy |
protected boolean |
compute_titleFont_flag
|
protected static java.awt.datatransfer.DataFlavor |
dcTileDataFlavor
|
static java.lang.String |
DEFAULT_BKG
|
static java.lang.String |
DEFAULT_BUSY
Resource used to show the Tile is Busy |
static java.lang.String |
DEFAULT_ICON
|
static java.awt.Dimension |
DEFAULT_ICON_SIZE
|
protected float |
default_shortTitle_Size
|
protected java.awt.Font |
default_shortTitleFont
|
static java.awt.Dimension |
DEFAULT_TILE_SIZE
|
protected static javax.swing.ImageIcon |
defaultIcon
|
protected javax.swing.JMenuItem |
deleteMI
|
static java.lang.String |
DESC_ATTR
|
protected java.lang.String |
description
|
protected javax.swing.Icon |
icon
|
protected int |
iconX
|
protected int |
iconY
|
protected org.ocd.dcf.DCTile.MyMenuListener |
menuListener
|
static java.lang.String |
NAME_ATTR
|
static java.lang.String |
NODE_NAME
|
protected javax.swing.JMenuItem |
propertiesMI
|
protected java.lang.String |
shortTitle
|
protected java.awt.Font |
shortTitleFont
|
protected int |
shortTitleX
|
static java.lang.String |
SHOW_TITLE_ATTR
|
protected boolean |
showBkgrd_flag
|
protected boolean |
showBusy_flag
Set to true when we are trying to perform the associated Action |
protected boolean |
showTitle_flag
|
static java.lang.String |
TILE_FLAVOR_NAME
|
static java.lang.String |
TILE_MIME_TYPE
|
protected DCPopupMenu |
tileMenu
|
protected java.lang.String |
title
|
static java.lang.String |
TITLE_ATTR
|
protected org.ocd.dcf.DCTile.TitleComponent |
titleComp
|
Fields inherited from class org.ocd.dcf.DCComponent |
dcComponentListeners, desktopFrame, draggable_flag, dragRecognizer, dragSource, dragSourceListener, extensionHREF, extensionName, extensionVersion, onDesktop_flag, relativeURL, transferObject, visible_flag, window, xmlChanged_flag, xmlParser |
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 | |
DCTile()
Create a Tile |
|
DCTile(javax.swing.Icon pIcon,
java.lang.String pShortTitle,
java.lang.String pTitle,
java.lang.String pDesc)
Create a Tile |
Method Summary | |
java.lang.Object |
clone()
Clone this Tile For the tile to be cloned the Action must also be able to clone |
void |
dispose()
Dispose of this Tile |
javax.swing.Action |
getAction()
Get the Action of the Tile |
static java.awt.datatransfer.DataFlavor |
getDCTileDataFlavor()
Return the DCTileDataFlavor |
java.lang.String |
getDescription()
Get Description |
java.awt.Dimension |
getPreferredSize()
Return the Preferred Size of this Tile |
java.lang.String |
getShortTitle()
Get the Short Title |
boolean |
getShowBackground()
Do we show the Background |
boolean |
getShowTitle()
Show the Title |
java.lang.String |
getTitle()
Get the Title |
org.w3c.dom.Element |
getXMLElement()
Gets the XML Data for this Tile |
void |
hideBusy()
Hide the Busy Icon |
void |
paintComponent(java.awt.Graphics pGraphics)
Paint the Tile Component This method first paints the Background Image then the Icon and then the Title |
protected void |
processElement(org.w3c.dom.Element pElement)
Process an Embedded Element |
protected void |
processProperties(XMLProperties pProperties)
Process Properties from XML |
void |
setAction(javax.swing.Action pAction)
Set the Action for the Tile |
void |
setBLXElement(org.w3c.dom.Element pElement,
java.net.URL pRelativeURL)
Set the Node on this Component |
void |
setDescription(java.lang.String pDesc)
Set the Description of the Tile. |
void |
setIcon(javax.swing.Icon pIcon)
Set the Icon for the Tile |
void |
setLocation(int x,
int y)
Set the Location of the Tile |
void |
setOnDesktop(boolean pBool)
Set Tile on Desktop |
void |
setShortTitle(java.lang.String pTitle)
Set the Short Title. |
void |
setShowBackground(boolean b)
Show the Tile BackGround |
void |
setShowTitle(boolean pShowTitle)
Show the Title |
void |
setTitle(java.lang.String pTitle)
Set the Title of the Tile The Title displays in a seperate Window below the Tile |
void |
setVisible(boolean pVisible)
Show or Hide the Tile |
void |
showBusy()
Show the Busy Icon |
protected void |
updateTitleLocation()
Update the Location of the Title based on the Tile Location |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUIClassID, paramString, updateUI |
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, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update |
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.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setName, setSize, show, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String TILE_MIME_TYPE
public static final java.lang.String TILE_FLAVOR_NAME
protected static java.awt.datatransfer.DataFlavor dcTileDataFlavor
public static final java.awt.Dimension DEFAULT_TILE_SIZE
public static final java.awt.Dimension DEFAULT_ICON_SIZE
public static final java.lang.String DEFAULT_BKG
public static final java.lang.String DEFAULT_ICON
public static final java.lang.String DEFAULT_BUSY
protected static transient javax.swing.ImageIcon defaultIcon
protected transient javax.swing.ImageIcon busyIcon
protected final float default_shortTitle_Size
protected final java.awt.Font default_shortTitleFont
public static final java.lang.String SHOW_TITLE_ATTR
public static final java.lang.String TITLE_ATTR
public static final java.lang.String NAME_ATTR
public static final java.lang.String DESC_ATTR
public static final java.lang.String NODE_NAME
protected boolean showTitle_flag
protected boolean showBkgrd_flag
protected transient boolean compute_titleFont_flag
protected transient java.awt.Image backgroundImage
protected transient boolean showBusy_flag
protected javax.swing.Icon icon
protected int iconX
protected int iconY
protected java.lang.String shortTitle
protected java.lang.String title
protected java.lang.String description
protected transient org.ocd.dcf.DCTile.TitleComponent titleComp
protected javax.swing.Action action
protected transient java.awt.Font shortTitleFont
protected transient int shortTitleX
protected transient DCPopupMenu tileMenu
protected transient org.ocd.dcf.DCTile.MyMenuListener menuListener
protected transient javax.swing.JMenuItem propertiesMI
protected transient javax.swing.JMenuItem deleteMI
Constructor Detail |
public DCTile()
public DCTile(javax.swing.Icon pIcon, java.lang.String pShortTitle, java.lang.String pTitle, java.lang.String pDesc)
pIcon
- Icon to Use for TilepShortTitle
- short title for TilepTitle
- Title for TilepDesc
- Description of TileMethod Detail |
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
public static java.awt.datatransfer.DataFlavor getDCTileDataFlavor()
public void setIcon(javax.swing.Icon pIcon)
pIcon
- to usepublic void setAction(javax.swing.Action pAction)
pAction
- public javax.swing.Action getAction()
public void setLocation(int x, int y)
setLocation
in class DCComponent
x
- locationy
- locationprotected void updateTitleLocation()
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class javax.swing.JComponent
public void setVisible(boolean pVisible)
setVisible
in class DCComponent
pVisible
- public void setOnDesktop(boolean pBool)
setOnDesktop
in class DCComponent
pBool
- public void setShowTitle(boolean pShowTitle)
pShowTitle
- public void setShowBackground(boolean b)
public boolean getShowBackground()
public boolean getShowTitle()
public void setShortTitle(java.lang.String pTitle)
@pTitle
- public java.lang.String getShortTitle()
public void setTitle(java.lang.String pTitle)
pTitle
- public java.lang.String getTitle()
public void setDescription(java.lang.String pDesc)
pDesc
- public java.lang.String getDescription()
public void showBusy()
public void hideBusy()
public void paintComponent(java.awt.Graphics pGraphics)
paintComponent
in class javax.swing.JComponent
public void dispose()
dispose
in class DCComponent
public void setBLXElement(org.w3c.dom.Element pElement, java.net.URL pRelativeURL)
setBLXElement
in class DCComponent
pElement
- Node that contains this components settingspRelativeURL
- the URL that all HREFs would be relative toprotected void processElement(org.w3c.dom.Element pElement)
protected void processProperties(XMLProperties pProperties)
pProperties
- Properties to Processpublic org.w3c.dom.Element getXMLElement()
getXMLElement
in class DCComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |