|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.event.MouseAdapter com.jidesoft.gantt.GanttChartPopupMenuInstaller
public class GanttChartPopupMenuInstaller
GanttChartPopupMenuInstaller
allows you to add a popup menu to GanttChart and customize it. To use it,
you just need to call
GanttChartPopupMenuInstaller installer = new GanttChartPopupMenuInstaller(ganttChart);
Or if you want to uninstall it, call
GanttChartPopupMenuInstaller.getGanttChartPopupMenuInstaller(ganttChart).uninstallListeners();
However GanttchartPopupMenuInstaller
has no menu items. You can use one of the existing
GanttChartPopupMenuCustomizer
s to add more menu items or create your own
GanttChartPopupMenuCustomizer
to do it.
Field Summary | |
---|---|
static String |
CLIENT_PROPERTY_POPUP_MENU_INSTALLER
Client property used by GanttChart to provide its own GanttChartColumnPopupMenuCustomizer. |
Constructor Summary | |
---|---|
GanttChartPopupMenuInstaller(GanttChart<?,?> ganttChart)
Creates a GanttChartColumnPopupMenuCustomizer. |
Method Summary | |
---|---|
void |
addGanttChartPopupMenuCustomizer(GanttChartPopupMenuCustomizer customizer)
|
static void |
addSeparatorIfNecessary(JPopupMenu popup)
Adds a separator to the popup menu if there are menu items on it already. |
protected JPopupMenu |
createPopupMenu()
|
protected void |
customizeMenuItems(GanttChart<?,?> ganttChart,
JPopupMenu popup,
int clickingRow,
Point p)
Customizes the menu items for the popup menu. |
GanttChartPopupMenuCustomizer[] |
getGanttChartPopupMenuCustomizers()
|
static GanttChartPopupMenuInstaller |
getGanttChartPopupMenuInstaller(GanttChart<?,?> ganttChart)
Gets the Searchable installed on the component. |
void |
installListeners()
Installs the listeners needed in order to show the popup menu for the GanttChart. |
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
removeTablePopupMenuCustomizer(GanttChartPopupMenuCustomizer customizer)
|
void |
uninstallListeners()
Uninstalls the listeners needed in order to show the popup menu for the GanttChart. |
Methods inherited from class java.awt.event.MouseAdapter |
---|
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseWheelMoved |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CLIENT_PROPERTY_POPUP_MENU_INSTALLER
Constructor Detail |
---|
public GanttChartPopupMenuInstaller(GanttChart<?,?> ganttChart)
ganttChart
- the table.Method Detail |
---|
public void addGanttChartPopupMenuCustomizer(GanttChartPopupMenuCustomizer customizer)
public void removeTablePopupMenuCustomizer(GanttChartPopupMenuCustomizer customizer)
public GanttChartPopupMenuCustomizer[] getGanttChartPopupMenuCustomizers()
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
mousePressed
in class MouseAdapter
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
mouseReleased
in class MouseAdapter
protected JPopupMenu createPopupMenu()
protected void customizeMenuItems(GanttChart<?,?> ganttChart, JPopupMenu popup, int clickingRow, Point p)
ganttChart
- the ganttChart.popup
- the popup menu.clickingRow
- the row that user right clicks.p
- the point that user right clicks.public static void addSeparatorIfNecessary(JPopupMenu popup)
popup
- the popup menu.public void installListeners()
public void uninstallListeners()
public static GanttChartPopupMenuInstaller getGanttChartPopupMenuInstaller(GanttChart<?,?> ganttChart)
ganttChart
- the GanttChart
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |