|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(java.lang.String id)
|
Method Summary | |
---|---|
void |
addToolBarItemListener(ToolBarItem.ToolBarItemListener l)
|
UIToolBarActivationListener |
getDefaultActivationListener()
|
java.lang.String |
getGroupID()
|
java.lang.String |
getID()
Retrieve the ID of the toolbar item |
java.lang.String |
getImageID()
Get the ID of the image used |
long |
getState()
|
java.lang.String |
getTextID()
Return the message bundle ID for the button text |
java.lang.String |
getToolTip()
|
java.lang.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(java.lang.String groupID)
|
void |
setImageID(java.lang.String id)
Sets the toolbar item to use the specified image |
void |
setState(long state)
|
void |
setTextID(java.lang.String id)
Sets the button's text to a messagebundle value looked up using the id |
void |
setToolTip(java.lang.String text)
|
void |
setTooltipID(java.lang.String tooltipID)
|
boolean |
triggerToolBarItem(long activationType,
java.lang.Object datasource)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UIToolBarItemImpl(java.lang.String id)
Method Detail |
---|
public void addToolBarItemListener(ToolBarItem.ToolBarItemListener l)
addToolBarItemListener
in interface ToolBarItem
public void removeToolBarItemListener(ToolBarItem.ToolBarItemListener l)
removeToolBarItemListener
in interface ToolBarItem
public java.lang.String getID()
UIToolBarItem
getID
in interface UIToolBarItem
public java.lang.String getTextID()
UIToolBarItem
getTextID
in interface UIToolBarItem
public void setTextID(java.lang.String id)
UIToolBarItem
setTextID
in interface UIToolBarItem
public java.lang.String getImageID()
UIToolBarItem
getImageID
in interface UIToolBarItem
public void setImageID(java.lang.String id)
UIToolBarItem
setImageID
in interface UIToolBarItem
public boolean isAlwaysAvailable()
UIToolBarItem
isAlwaysAvailable
in interface UIToolBarItem
public void setAlwaysAvailable(boolean alwaysAvailable)
setAlwaysAvailable
in interface ToolBarItem
public long getState()
getState
in interface UIToolBarItem
public void setState(long state)
setState
in interface UIToolBarItem
public boolean triggerToolBarItem(long activationType, java.lang.Object datasource)
triggerToolBarItem
in interface ToolBarItem
triggerToolBarItem
in interface UIToolBarItem
public void setDefaultActivationListener(UIToolBarActivationListener defaultActivation)
setDefaultActivationListener
in interface ToolBarItem
setDefaultActivationListener
in interface UIToolBarItem
public UIToolBarActivationListener getDefaultActivationListener()
getDefaultActivationListener
in interface ToolBarItem
public java.lang.String getTooltipID()
getTooltipID
in interface ToolBarItem
public void setTooltipID(java.lang.String tooltipID)
public java.lang.String getGroupID()
getGroupID
in interface UIToolBarItem
public void setGroupID(java.lang.String groupID)
setGroupID
in interface UIToolBarItem
public void setToolTip(java.lang.String text)
setToolTip
in interface UIToolBarItem
public java.lang.String getToolTip()
getToolTip
in interface UIToolBarItem
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |