|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PaletteItem
The PaletteItem
class represents the Object model for items on the component palette.
Field Summary | |
---|---|
static java.awt.datatransfer.DataFlavor |
PALETTE_ITEM_FLAVOR Drag and Drop DataFlavor representing a PaletteItem. |
Method Summary | |
---|---|
void |
attach(Observer observer) |
boolean |
canShow() Returns if this particular can make itself visible |
void |
detach(Observer observer) |
Attributes |
getAttributes() This method returns an Attributes object that encodes the attributes of the Element . |
java.util.Iterator |
getChildren() This method is part of the Element interface to provide a convenient way of getting an Iterator over any contained child Element s without having to test the object's type with the instanceof operator or having to downcast to a more specific type. |
java.lang.String |
getClassName() Return ClassName |
java.lang.String |
getClassPath() Return Classpath |
java.lang.Object |
getData() Returns the data object associated with this Element . |
java.lang.String |
getEditor() Retrieves the editor associated with this palette item. |
javax.swing.Icon |
getIcon() Returns an Icon that can be shown in association with this Displayable . |
java.lang.String |
getInitializer() |
java.lang.String |
getItemBeanInfo() |
boolean |
getItemCanRemove() |
java.lang.String |
getItemCodeSnippet() |
java.lang.String |
getItemEditor() |
java.lang.String |
getItemHelpable() |
java.lang.String |
getItemIcon() |
java.lang.String |
getItemInfo() |
boolean |
getItemIsPersistent() |
java.lang.String |
getItemLibrary() |
java.lang.String |
getItemLongLabel() |
java.lang.String |
getItemProjectConfiguration() |
java.lang.String |
getItemShortLabel() |
java.lang.String |
getItemTechnologyScope() |
java.lang.String |
getItemType() |
float |
getItemWeight() |
java.lang.String |
getLibrary() Return Library |
java.lang.String |
getLongLabel() Gets a fully qualified label for display purpose. |
java.lang.String |
getShortLabel() Gets a short label for display purpose. |
java.lang.String |
getTechnologyScope() Retreives the technology scope associated with this palette item. |
java.lang.String |
getToolTipText() Returns the tool tip text to show when the mouse pointer pauses over a UI component that represents this Displayable . |
boolean |
hasItem() |
boolean |
isPointer() |
boolean |
isResetItem() Returns true if item is a reset item "Pointer" |
boolean |
mayHaveChildren() This method is part of the Element interface to provide a convenient way of determining whether an object may have children without having to test the object's type with the instanceof operator or having to downcast to a more specific type. |
void |
notifyObservers(java.lang.Object object, UpdateMessage change) |
void |
setCanShow(boolean canShow) Set if this item can make itself visible the next it's parent folder shows itself. |
void |
setEditor(java.lang.String editor) Sets the current editor to use with this palette item. |
void |
setIcon(javax.swing.Icon icon) |
void |
setItemBeanInfo(java.lang.String beanInfo) |
void |
setItemCanRemove(boolean cr) |
void |
setItemCodeSnippet(java.lang.String s) |
void |
setItemEditor(java.lang.String editor) |
void |
setItemHelpable(java.lang.String help) |
void |
setItemIcon(java.lang.String icon) |
void |
setItemInfo(java.lang.String info) |
void |
setItemIsPersistent(boolean persist) |
void |
setItemLibrary(java.lang.String library) |
void |
setItemLongLabel(java.lang.String longLabel) |
void |
setItemProjectConfiguration(java.lang.String projectConfiguration) |
void |
setItemShortLabel(java.lang.String shortLabel) |
void |
setItemTechnologyScope(java.lang.String techScope) |
void |
setItemType(java.lang.String type) |
void |
setItemWeight(float weight) |
void |
setLongLabel(java.lang.String longLabel) |
void |
setShortLabel(java.lang.String shortLabel) |
void |
setTechnologyScope(java.lang.String techScope) Sets the technology scope to use with this palette item. |
Methods inherited from interface oracle.ide.model.Displayable |
---|
toString |
Field Detail |
---|
static final java.awt.datatransfer.DataFlavor PALETTE_ITEM_FLAVOR
Method Detail |
---|
java.lang.String getClassName()
java.lang.String getClassPath()
java.lang.String getLibrary()
java.lang.String getInitializer()
boolean isPointer()
boolean canShow()
void setCanShow(boolean canShow)
java.lang.String getEditor()
void setEditor(java.lang.String editor)
editor
-void setTechnologyScope(java.lang.String techScope)
techScope
-java.lang.String getTechnologyScope()
boolean isResetItem()
boolean hasItem()
java.lang.String getItemIcon()
void setItemIcon(java.lang.String icon)
java.lang.String getItemShortLabel()
void setItemShortLabel(java.lang.String shortLabel)
java.lang.String getItemLongLabel()
void setItemLongLabel(java.lang.String longLabel)
java.lang.String getItemInfo()
void setItemInfo(java.lang.String info)
java.lang.String getItemType()
void setItemType(java.lang.String type)
float getItemWeight()
void setItemWeight(float weight)
java.lang.String getItemEditor()
void setItemEditor(java.lang.String editor)
java.lang.String getItemLibrary()
void setItemLibrary(java.lang.String library)
java.lang.String getItemBeanInfo()
void setItemBeanInfo(java.lang.String beanInfo)
java.lang.String getItemCodeSnippet()
void setItemCodeSnippet(java.lang.String s)
boolean getItemIsPersistent()
void setItemIsPersistent(boolean persist)
java.lang.String getItemHelpable()
void setItemHelpable(java.lang.String help)
java.lang.String getItemProjectConfiguration()
void setItemProjectConfiguration(java.lang.String projectConfiguration)
java.lang.String getItemTechnologyScope()
void setItemTechnologyScope(java.lang.String techScope)
boolean getItemCanRemove()
void setItemCanRemove(boolean cr)
void attach(Observer observer)
void detach(Observer observer)
void notifyObservers(java.lang.Object object, UpdateMessage change)
boolean mayHaveChildren()
Element
Element
interface to provide a convenient way of determining whether an object may have children without having to test the object's type with the instanceof
operator or having to downcast to a more specific type.
An implementation of Element
that represents a leaf in a tree structure should return false
from this method. An implementation of Element
that could represent a non-leaf in a tree structure should return true
from this method, even if it does not currently contain any children.
mayHaveChildren
in interface Element
java.util.Iterator getChildren()
Element
Element
interface to provide a convenient way of getting an Iterator
over any contained child Element
s without having to test the object's type with the instanceof
operator or having to downcast to a more specific type.
An implementation of Element
that represents a leaf in a tree structure should return null
from this method. An implementation of Element
that could represent a non-leaf in a tree structure should return either an Iterator
over the child Element
s or null
if there are no children.
getChildren
in interface Element
Attributes getAttributes()
Element
Attributes
object that encodes the attributes of the Element
. Changing the attribute settings on the return object changes the element attributes. Subclasses should use their super class attributes object to define their own attributes. This allows subclasses to inherit their super class attributes. If a subclass does not wish to inherit attributes, they should first call getAttributes().clear()
and define new attributes.getAttributes
in interface Element
java.lang.Object getData()
Element
Element
. Implementations will often simply return this
, since the Element is often its own data object. If the implementation returns an object other than this
, be sure to set ElementAttributes.DECORATES_DATA_ELEMENT
.getData
in interface Element
Element
instance.java.lang.String getShortLabel()
getShortLabel
in interface Displayable
java.lang.String getLongLabel()
getLongLabel
in interface Displayable
javax.swing.Icon getIcon()
Displayable
Icon
that can be shown in association with this Displayable
. Typically the icon will be used in a tree control or list control. Therefore the icon must fit naturally within the space normally given to items within those controls. Such icons are usually 16x16 in size or, if there is a one-pixel transparent padding around the edge, 18x18 in size. It is strongly recommended that icons returned by this method be either 16x16 or 18x18 in size. If null
is returned, the control may show a default icon, or it may show no icon, whichever is appropriate.getIcon
in interface Displayable
void setShortLabel(java.lang.String shortLabel)
void setLongLabel(java.lang.String longLabel)
void setIcon(javax.swing.Icon icon)
java.lang.String getToolTipText()
Displayable
Displayable
. In many cases it may be appropriate for this method to return the same value as Displayable.getLongLabel()
.getToolTipText
in interface Displayable
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |