|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gudy.azureus2.ui.swt.pluginsimpl.UIToolBarItemImpl
public class UIToolBarItemImpl
A Toolbar item implementation, independent of UI (SWT)
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.aelitis.azureus.ui.common.ToolBarItem |
|---|
ToolBarItem.ToolBarItemListener |
| Field Summary |
|---|
| Fields inherited from interface org.gudy.azureus2.plugins.ui.toolbar.UIToolBarItem |
|---|
STATE_DOWN, STATE_ENABLED |
| Constructor Summary | |
|---|---|
UIToolBarItemImpl(String id)
|
|
| Method Summary | |
|---|---|
void |
addToolBarItemListener(ToolBarItem.ToolBarItemListener l)
|
UIToolBarActivationListener |
getDefaultActivationListener()
|
String |
getGroupID()
|
String |
getID()
Retrieve the ID of the toolbar item |
String |
getImageID()
Get the ID of the image used |
long |
getState()
|
String |
getTextID()
Return the message bundle ID for the button text |
String |
getToolTip()
|
String |
getTooltipID()
|
boolean |
isAlwaysAvailable()
Returns if the toolbar item is always available (enabled) |
void |
removeToolBarItemListener(ToolBarItem.ToolBarItemListener l)
|
void |
setAlwaysAvailable(boolean alwaysAvailable)
|
void |
setDefaultActivationListener(UIToolBarActivationListener defaultActivation)
|
void |
setGroupID(String groupID)
|
void |
setImageID(String id)
Sets the toolbar item to use the specified image |
void |
setState(long state)
|
void |
setTextID(String id)
Sets the button's text to a messagebundle value looked up using the id |
void |
setToolTip(String text)
|
void |
setTooltipID(String tooltipID)
|
boolean |
triggerToolBarItem(long activationType,
Object datasource)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UIToolBarItemImpl(String id)
| Method Detail |
|---|
public void addToolBarItemListener(ToolBarItem.ToolBarItemListener l)
addToolBarItemListener in interface ToolBarItempublic void removeToolBarItemListener(ToolBarItem.ToolBarItemListener l)
removeToolBarItemListener in interface ToolBarItempublic String getID()
UIToolBarItem
getID in interface UIToolBarItempublic String getTextID()
UIToolBarItem
getTextID in interface UIToolBarItempublic void setTextID(String id)
UIToolBarItem
setTextID in interface UIToolBarItempublic String getImageID()
UIToolBarItem
getImageID in interface UIToolBarItempublic void setImageID(String id)
UIToolBarItem
setImageID in interface UIToolBarItempublic boolean isAlwaysAvailable()
UIToolBarItem
isAlwaysAvailable in interface UIToolBarItempublic void setAlwaysAvailable(boolean alwaysAvailable)
setAlwaysAvailable in interface ToolBarItempublic long getState()
getState in interface UIToolBarItempublic void setState(long state)
setState in interface UIToolBarItem
public boolean triggerToolBarItem(long activationType,
Object datasource)
triggerToolBarItem in interface ToolBarItemtriggerToolBarItem in interface UIToolBarItempublic void setDefaultActivationListener(UIToolBarActivationListener defaultActivation)
setDefaultActivationListener in interface ToolBarItemsetDefaultActivationListener in interface UIToolBarItempublic UIToolBarActivationListener getDefaultActivationListener()
getDefaultActivationListener in interface ToolBarItempublic String getTooltipID()
getTooltipID in interface ToolBarItempublic void setTooltipID(String tooltipID)
public String getGroupID()
getGroupID in interface UIToolBarItempublic void setGroupID(String groupID)
setGroupID in interface UIToolBarItempublic void setToolTip(String text)
setToolTip in interface UIToolBarItempublic String getToolTip()
getToolTip in interface UIToolBarItem
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||