public class DefaultPaletteItem extends PaletteItem
Modifier and Type | Class and Description |
---|---|
static class |
DefaultPaletteItem.Builder |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ITEM_CLASSNAME |
static java.lang.String |
ITEM_CLASSPATH |
static java.lang.String |
ITEM_CODESNIPPET |
static java.lang.String |
ITEM_DND_TRANSFERDATA |
static java.lang.String |
ITEM_EDITOR
HashMap data keys
|
static java.lang.String |
ITEM_EXTENSION |
static java.lang.String |
ITEM_INFO |
static java.lang.String |
ITEM_LIBRARY |
static java.lang.String |
ITEM_TECHNOLOGYSCOPES |
static java.lang.String |
ITEM_TYPE |
static java.lang.String |
ITEM_WEIGHT |
PALETTE_ITEM_FLAVOR
Constructor and Description |
---|
DefaultPaletteItem()
Default Constructor.
|
DefaultPaletteItem(java.lang.String name,
java.lang.String description,
javax.swing.Icon icon,
java.lang.String itemId,
java.lang.String providerId,
java.lang.String pageEditor,
java.util.List<java.lang.String> technologyScopes,
java.lang.String type,
java.lang.String info,
java.lang.String classPath,
java.lang.String className,
java.lang.String library,
java.lang.String weight,
java.lang.String helpable,
java.lang.String searchTextContext)
Deprecated.
Use the public static inner
Builder class to
construct a new instance. |
DefaultPaletteItem(java.lang.String name,
java.lang.String description,
java.lang.String icon,
java.lang.String itemId,
java.lang.String providerId,
java.lang.String pageEditor,
java.util.List<java.lang.String> technologyScopes,
java.lang.String type,
java.lang.String info,
java.lang.String classPath,
java.lang.String className,
java.lang.String library,
java.lang.String weight,
java.lang.String helpable,
java.lang.String searchTextContext)
Deprecated.
Use the public static inner
Builder class to
construct a new instance. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Equals
|
java.lang.Object |
getData(java.lang.Object key)
Get data
|
java.lang.String |
getDescription()
Get description.
|
java.lang.String |
getHelpable()
Get help link.
|
javax.swing.Icon |
getIcon()
Get Icon.
|
java.lang.String |
getIconURL() |
java.lang.String |
getItemId()
Get Item Id
|
javax.swing.Icon |
getLargeIcon()
Get the large icon (usually 32 pix.
|
java.lang.String |
getLargeIconURL() |
java.lang.String |
getName()
Get display name.
|
java.lang.String |
getProviderId()
Get Provider Id.
|
java.lang.String |
getSearchTextContext()
Get search text context callback name.
|
void |
setData(java.lang.Object key,
java.lang.Object data) |
protected void |
setDescription(java.lang.String description)
Set description
|
protected void |
setHelpable(java.lang.String helpable)
Set help link.
|
protected void |
setIcon(javax.swing.Icon icon)
Set Icon
|
protected void |
setIcon(java.lang.String iconParm)
Set Icon.
|
protected void |
setItemId(java.lang.String itemId)
Set Item Id
|
protected void |
setLargeIcon(javax.swing.Icon largeIcon) |
protected void |
setName(java.lang.String name)
Set display name.
|
protected void |
setProviderId(java.lang.String providerId)
Get Provider Id.
|
protected void |
setSearchTextContext(java.lang.String searchTextContext)
Set search text context callback name.
|
java.lang.String |
toString() |
dispose, hashCode
public static final java.lang.String ITEM_EDITOR
public static final java.lang.String ITEM_INFO
public static final java.lang.String ITEM_CLASSPATH
public static final java.lang.String ITEM_CLASSNAME
public static final java.lang.String ITEM_LIBRARY
public static final java.lang.String ITEM_TECHNOLOGYSCOPES
public static final java.lang.String ITEM_TYPE
public static final java.lang.String ITEM_WEIGHT
public static final java.lang.String ITEM_CODESNIPPET
public static final java.lang.String ITEM_EXTENSION
public static final java.lang.String ITEM_DND_TRANSFERDATA
public DefaultPaletteItem()
@Deprecated public DefaultPaletteItem(java.lang.String name, java.lang.String description, java.lang.String icon, java.lang.String itemId, java.lang.String providerId, java.lang.String pageEditor, java.util.List<java.lang.String> technologyScopes, java.lang.String type, java.lang.String info, java.lang.String classPath, java.lang.String className, java.lang.String library, java.lang.String weight, java.lang.String helpable, java.lang.String searchTextContext)
Builder
class to
construct a new instance.@Deprecated public DefaultPaletteItem(java.lang.String name, java.lang.String description, javax.swing.Icon icon, java.lang.String itemId, java.lang.String providerId, java.lang.String pageEditor, java.util.List<java.lang.String> technologyScopes, java.lang.String type, java.lang.String info, java.lang.String classPath, java.lang.String className, java.lang.String library, java.lang.String weight, java.lang.String helpable, java.lang.String searchTextContext)
Builder
class to
construct a new instance.public java.lang.String getName()
getName
in class PaletteItem
protected void setName(java.lang.String name)
public java.lang.String getDescription()
getDescription
in class PaletteItem
protected void setDescription(java.lang.String description)
public javax.swing.Icon getIcon()
getIcon
in class PaletteItem
public java.lang.String getIconURL()
protected void setIcon(java.lang.String iconParm)
iconParm
- protected void setIcon(javax.swing.Icon icon)
icon
- public javax.swing.Icon getLargeIcon()
PaletteItem
getLargeIcon
in class PaletteItem
null
if none is availablepublic java.lang.String getLargeIconURL()
protected void setLargeIcon(javax.swing.Icon largeIcon)
public java.lang.String getItemId()
getItemId
in class PaletteItem
protected void setItemId(java.lang.String itemId)
itemId.
- public java.lang.String getProviderId()
An identifier that is utilized to identify this item as belonging to the page provider that 'owns' this item. For example, oracle.ide.palette2.DeclaredPageProvider may own all statically declared items.
getProviderId
in class PaletteItem
protected void setProviderId(java.lang.String providerId)
An identifier that is utilized to identify this item as belonging to the page provider that 'owns' this item. For example, oracle.ide.palette2.DeclaredPageProvider may own all statically declared items.
public java.lang.String getSearchTextContext()
getSearchTextContext
in class PaletteItem
protected void setSearchTextContext(java.lang.String searchTextContext)
searchTextContext
- public java.lang.String getHelpable()
getHelpable
in class PaletteItem
protected void setHelpable(java.lang.String helpable)
helpable
- public java.lang.Object getData(java.lang.Object key)
Use to surface arbitrary additional data. This is used to identify the item to their clients without requiring clients to cast to a PaletteItem subclass.
For example, in XMLEF, use getData to get from a PaletteItem back to the identification of what type of element to create (XmlKey). XMLEF's PaletteItem instances will have this data.
getData
in class PaletteItem
public void setData(java.lang.Object key, java.lang.Object data)
public boolean equals(java.lang.Object obj)
equals
in class PaletteItem
obj
- public java.lang.String toString()
toString
in class java.lang.Object