Class CalendarFrameSidebarExtension
- java.lang.Object
-
- com.openindex.openestate.tool.extensions.FrameSidebarAdapter
-
- com.openindex.openestate.tool.calendar.CalendarFrameSidebarExtension
-
- All Implemented Interfaces:
BasicExtension
,FrameSidebarExtension
,org.pf4j.ExtensionPoint
@Extension(points=FrameSidebarExtension.class) public class CalendarFrameSidebarExtension extends FrameSidebarAdapter
CalendarFrameSidebarExtension.- Author:
- Andreas Rudolph
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CalendarFrameSidebarExtension.Tree
static class
CalendarFrameSidebarExtension.TreeNode
-
Field Summary
Fields Modifier and Type Field Description static int
MENU_ADD
static int
MENU_ADD_BEGIN
static int
MENU_ADD_END
static int
MENU_ADD_EVENT
static int
MENU_ADD_GROUP
static int
MENU_ADD_TODO
static int
MENU_BEGIN
static int
MENU_ELSE
static int
MENU_ELSE_BEGIN
static int
MENU_ELSE_END
static int
MENU_ELSE_SYNC
static int
MENU_END
static int
MENU_REFRESH
static int
MENU_SELECTION
-
Constructor Summary
Constructors Constructor Description CalendarFrameSidebarExtension()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JComponent
createComponent()
static TreeModel
createTreeModel(ImmoToolProject project, Connection c, DbCalendarHandler calendarHandler)
static AbstractButton
getCurrentSidebarButton()
static CalendarFrameSidebarExtension.Tree
getCurrentSidebarTree()
Icon
getIcon()
JPopupMenu
getMenu()
String
getTitle()
String
getTooltipText()
void
loadComponent(JComponent component)
void
register(JComponent component, AbstractButton button)
void
unregister()
-
Methods inherited from class com.openindex.openestate.tool.extensions.FrameSidebarAdapter
getAddons, getRequiredPluginIds, isSystem, loadMenu, loadMenu
-
-
-
-
Field Detail
-
MENU_BEGIN
public static final int MENU_BEGIN
- See Also:
- Constant Field Values
-
MENU_REFRESH
public static final int MENU_REFRESH
- See Also:
- Constant Field Values
-
MENU_ADD
public static final int MENU_ADD
- See Also:
- Constant Field Values
-
MENU_ADD_BEGIN
public static final int MENU_ADD_BEGIN
- See Also:
- Constant Field Values
-
MENU_ADD_EVENT
public static final int MENU_ADD_EVENT
- See Also:
- Constant Field Values
-
MENU_ADD_TODO
public static final int MENU_ADD_TODO
- See Also:
- Constant Field Values
-
MENU_ADD_GROUP
public static final int MENU_ADD_GROUP
- See Also:
- Constant Field Values
-
MENU_ADD_END
public static final int MENU_ADD_END
- See Also:
- Constant Field Values
-
MENU_SELECTION
public static final int MENU_SELECTION
- See Also:
- Constant Field Values
-
MENU_ELSE
public static final int MENU_ELSE
- See Also:
- Constant Field Values
-
MENU_ELSE_BEGIN
public static final int MENU_ELSE_BEGIN
- See Also:
- Constant Field Values
-
MENU_ELSE_SYNC
public static final int MENU_ELSE_SYNC
- See Also:
- Constant Field Values
-
MENU_ELSE_END
public static final int MENU_ELSE_END
- See Also:
- Constant Field Values
-
MENU_END
public static final int MENU_END
- See Also:
- Constant Field Values
-
-
Method Detail
-
createComponent
public JComponent createComponent()
- Specified by:
createComponent
in interfaceFrameSidebarExtension
- Specified by:
createComponent
in classFrameSidebarAdapter
-
createTreeModel
public static TreeModel createTreeModel(ImmoToolProject project, Connection c, DbCalendarHandler calendarHandler) throws SQLException
- Throws:
SQLException
-
getCurrentSidebarButton
public static AbstractButton getCurrentSidebarButton()
-
getCurrentSidebarTree
public static CalendarFrameSidebarExtension.Tree getCurrentSidebarTree()
-
getIcon
public Icon getIcon()
- Specified by:
getIcon
in interfaceFrameSidebarExtension
- Specified by:
getIcon
in classFrameSidebarAdapter
-
getMenu
public JPopupMenu getMenu()
- Specified by:
getMenu
in interfaceFrameSidebarExtension
- Overrides:
getMenu
in classFrameSidebarAdapter
-
getTitle
public String getTitle()
- Specified by:
getTitle
in interfaceFrameSidebarExtension
- Specified by:
getTitle
in classFrameSidebarAdapter
-
getTooltipText
public String getTooltipText()
- Specified by:
getTooltipText
in interfaceFrameSidebarExtension
- Specified by:
getTooltipText
in classFrameSidebarAdapter
-
loadComponent
public void loadComponent(JComponent component)
- Specified by:
loadComponent
in interfaceFrameSidebarExtension
- Overrides:
loadComponent
in classFrameSidebarAdapter
-
register
public void register(JComponent component, AbstractButton button)
- Specified by:
register
in interfaceFrameSidebarExtension
- Overrides:
register
in classFrameSidebarAdapter
-
unregister
public void unregister()
- Specified by:
unregister
in interfaceFrameSidebarExtension
- Overrides:
unregister
in classFrameSidebarAdapter
-
-