|
|||||||||
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(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 ToolBarItem
public void removeToolBarItemListener(ToolBarItem.ToolBarItemListener l)
removeToolBarItemListener
in interface ToolBarItem
public String getID()
UIToolBarItem
getID
in interface UIToolBarItem
public String getTextID()
UIToolBarItem
getTextID
in interface UIToolBarItem
public void setTextID(String id)
UIToolBarItem
setTextID
in interface UIToolBarItem
public String getImageID()
UIToolBarItem
getImageID
in interface UIToolBarItem
public void setImageID(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, 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 String getTooltipID()
getTooltipID
in interface ToolBarItem
public void setTooltipID(String tooltipID)
public String getGroupID()
getGroupID
in interface UIToolBarItem
public void setGroupID(String groupID)
setGroupID
in interface UIToolBarItem
public void setToolTip(String text)
setToolTip
in interface UIToolBarItem
public String getToolTip()
getToolTip
in interface UIToolBarItem
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |