Package org.apache.hop.ui.core.gui
Class GuiToolbarWidgets
- java.lang.Object
-
- org.apache.hop.ui.core.gui.BaseGuiWidgets
-
- org.apache.hop.ui.core.gui.GuiToolbarWidgets
-
public class GuiToolbarWidgets extends BaseGuiWidgets
This class contains the widgets for the GUI elements of a GUI Plugin
-
-
Field Summary
-
Fields inherited from class org.apache.hop.ui.core.gui.BaseGuiWidgets
guiPluginClassName, guiPluginObject, instanceId
-
-
Constructor Summary
Constructors Constructor Description GuiToolbarWidgets()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateToolbarWidgets(org.eclipse.swt.widgets.Composite parent, String root)voidenableToolbarItem(String id, boolean enabled)org.eclipse.swt.widgets.ToolItemenableToolbarItem(IHopFileType fileType, String id, String permission)Find the toolbar item with the given ID.org.eclipse.swt.widgets.ToolItemenableToolbarItem(IHopFileType fileType, String id, String permission, boolean active)Find the toolbar item with the given ID.org.eclipse.swt.widgets.ToolItemfindToolItem(String id)Map<String,GuiToolbarItem>getGuiToolBarMap()Gets guiToolBarMaporg.eclipse.swt.graphics.ColorgetItemBackgroundColor()Gets itemBackgroundColorprotected org.eclipse.swt.widgets.ListenergetListener(GuiToolbarItem toolbarItem)Map<String,org.eclipse.swt.widgets.ToolItem>getToolItemMap()Gets toolItemMapMap<String,org.eclipse.swt.widgets.Control>getWidgetsMap()Gets widgetsMapvoidrefreshComboItemList(String id)voidselectComboItem(String id, String string)voidsetGuiToolBarMap(Map<String,GuiToolbarItem> guiToolBarMap)voidsetItemBackgroundColor(org.eclipse.swt.graphics.Color itemBackgroundColor)Sets itemBackgroundColorvoidsetToolItemMap(Map<String,org.eclipse.swt.widgets.ToolItem> toolItemMap)voidsetWidgetsMap(Map<String,org.eclipse.swt.widgets.Control> widgetsMap)-
Methods inherited from class org.apache.hop.ui.core.gui.BaseGuiWidgets
addDeRegisterGuiPluginObjectListener, dispose, findGuiPluginInstance, getComboItems, getGuiPluginClassName, getGuiPluginObject, getInstanceId, getListener, registerGuiPluginObject, setGuiPluginClassName, setGuiPluginObject, setInstanceId
-
-
-
-
Method Detail
-
createToolbarWidgets
public void createToolbarWidgets(org.eclipse.swt.widgets.Composite parent, String root)
-
enableToolbarItem
public void enableToolbarItem(String id, boolean enabled)
-
enableToolbarItem
public org.eclipse.swt.widgets.ToolItem enableToolbarItem(IHopFileType fileType, String id, String permission)
Find the toolbar item with the given ID. Check the capability in the given file type Enable or disable accordingly.- Parameters:
fileType-id- The ID of the widget to look forpermission-- Returns:
- The toolbar item or null if nothing is found
-
enableToolbarItem
public org.eclipse.swt.widgets.ToolItem enableToolbarItem(IHopFileType fileType, String id, String permission, boolean active)
Find the toolbar item with the given ID. Check the capability in the given file type Enable or disable accordingly.- Parameters:
fileType-id- The ID of the widget to look forpermission-active- The state if the permission is available- Returns:
- The toolbar item or null if nothing is found
-
findToolItem
public org.eclipse.swt.widgets.ToolItem findToolItem(String id)
-
refreshComboItemList
public void refreshComboItemList(String id)
-
getListener
protected org.eclipse.swt.widgets.Listener getListener(GuiToolbarItem toolbarItem)
-
getWidgetsMap
public Map<String,org.eclipse.swt.widgets.Control> getWidgetsMap()
Gets widgetsMap- Returns:
- value of widgetsMap
-
setWidgetsMap
public void setWidgetsMap(Map<String,org.eclipse.swt.widgets.Control> widgetsMap)
- Parameters:
widgetsMap- The widgetsMap to set
-
getToolItemMap
public Map<String,org.eclipse.swt.widgets.ToolItem> getToolItemMap()
Gets toolItemMap- Returns:
- value of toolItemMap
-
setToolItemMap
public void setToolItemMap(Map<String,org.eclipse.swt.widgets.ToolItem> toolItemMap)
- Parameters:
toolItemMap- The toolItemMap to set
-
getGuiToolBarMap
public Map<String,GuiToolbarItem> getGuiToolBarMap()
Gets guiToolBarMap- Returns:
- value of guiToolBarMap
-
setGuiToolBarMap
public void setGuiToolBarMap(Map<String,GuiToolbarItem> guiToolBarMap)
- Parameters:
guiToolBarMap- The guiToolBarMap to set
-
getItemBackgroundColor
public org.eclipse.swt.graphics.Color getItemBackgroundColor()
Gets itemBackgroundColor- Returns:
- value of itemBackgroundColor
-
setItemBackgroundColor
public void setItemBackgroundColor(org.eclipse.swt.graphics.Color itemBackgroundColor)
Sets itemBackgroundColor- Parameters:
itemBackgroundColor- value of itemBackgroundColor
-
-