Package org.adempiere.webui.adwindow
Interface IADTabpanel
-
- All Superinterfaces:
Cloneable
,org.zkoss.zk.ui.Component
,Evaluatee
,org.zkoss.zk.ui.ext.Scope
,Serializable
- All Known Implementing Classes:
ADSortTab
,ADTabpanel
public interface IADTabpanel extends org.zkoss.zk.ui.Component, Evaluatee
Interface for UI component that edit/display record using ad_tab definitions- Author:
- Low Heng Sin
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTR_ON_ACTIVATE_POSTED
static String
ON_ACTIVATE_EVENT
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
activate(boolean b)
activate/deactivate the panelvoid
afterSave(boolean onSaveEvent)
After save eventvoid
createUI()
Render the panelboolean
dataSave(boolean onSaveEvent)
void
dynamicDisplay(int i)
Dynamic update of field properties ( visibility, filter and mandatory )DetailPane
getDetailPane()
String
getDisplayLogic()
GridTab
getGridTab()
GridView
getGridView()
int
getRecord_ID()
String
getTableName()
int
getTabLevel()
int
getTabNo()
String
getTitle()
List<org.zkoss.zul.Button>
getToolbarButtons()
ADTreePanel
getTreePanel()
void
init(AbstractADWindowContent winPanel, GridTab gridTab)
boolean
isActivated()
boolean
isCurrent()
boolean
isDetailPaneMode()
default boolean
isDetailVisible()
Get is detail pane visibleboolean
isEnableCustomizeButton()
default boolean
isEnableProcessButton()
boolean
isEnableQuickFormButton()
boolean
isGridView()
boolean
needSave(boolean rowChange, boolean onlyRealChange)
boolean
onEnterKey()
Enter key eventvoid
query()
retrieve data from dbvoid
query(boolean currentRows, int currentDays, int maxRows)
retrieve data from dbvoid
refresh()
Refresh from dbvoid
resetDetailForNewParentRecord()
reset detail data grid when parent tab current record is new and not saved yetvoid
setDetailPane(DetailPane detailPane)
void
setDetailPaneMode(boolean detailMode)
void
setTabNo(int tabNo)
void
switchRowPresentation()
Toggle between grid and form viewvoid
updateDetailToolbar(org.zkoss.zul.Toolbar toolbar)
Enabled/Disabled detail panel toolbar buttonvoid
updateToolbar(ADWindowToolbar toolbar)
Enabled/Disabled tab toolbar button-
Methods inherited from interface org.zkoss.zk.ui.Component
addEventListener, addEventListener, addForward, addForward, addForward, addForward, appendChild, applyProperties, clone, detach, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getChildren, getClientAttribute, getClientDataAttribute, getDefinition, getDesktop, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getShadowVariable, getShadowVariable, getSpaceOwner, getStubonly, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttributeOrFellow, hasFellow, hasFellow, insertBefore, invalidate, isInvalidated, isListenerAvailable, isVisible, query, queryAll, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setTemplate, setVisible, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride
-
Methods inherited from interface org.compiere.util.Evaluatee
get_ValueAsString
-
-
-
-
Field Detail
-
ON_ACTIVATE_EVENT
static final String ON_ACTIVATE_EVENT
- See Also:
- Constant Field Values
-
ATTR_ON_ACTIVATE_POSTED
static final String ATTR_ON_ACTIVATE_POSTED
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
void init(AbstractADWindowContent winPanel, GridTab gridTab)
- Parameters:
winPanel
-gridTab
-
-
getDisplayLogic
String getDisplayLogic()
- Returns:
- display logic
-
getTabLevel
int getTabLevel()
- Returns:
- tab level
-
getTableName
String getTableName()
- Returns:
- tablename
-
getRecord_ID
int getRecord_ID()
- Returns:
- record ID
-
isCurrent
boolean isCurrent()
- Returns:
- true if refresh is not needed
-
getTitle
String getTitle()
- Returns:
- title
-
createUI
void createUI()
Render the panel
-
getGridTab
GridTab getGridTab()
- Returns:
- GridTab
-
activate
void activate(boolean b)
activate/deactivate the panel- Parameters:
b
-
-
query
void query()
retrieve data from db
-
refresh
void refresh()
Refresh from db
-
query
void query(boolean currentRows, int currentDays, int maxRows)
retrieve data from db- Parameters:
currentRows
-currentDays
-maxRows
-
-
switchRowPresentation
void switchRowPresentation()
Toggle between grid and form view
-
dynamicDisplay
void dynamicDisplay(int i)
Dynamic update of field properties ( visibility, filter and mandatory )- Parameters:
i
-
-
afterSave
void afterSave(boolean onSaveEvent)
After save event- Parameters:
onSaveEvent
-
-
onEnterKey
boolean onEnterKey()
Enter key event- Returns:
- true if the event is process
-
isGridView
boolean isGridView()
- Returns:
- boolean
-
isActivated
boolean isActivated()
- Returns:
- true if the panel have been activated
-
setDetailPaneMode
void setDetailPaneMode(boolean detailMode)
- Parameters:
detailMode
-
-
isDetailPaneMode
boolean isDetailPaneMode()
- Returns:
- true if the panel is in detailpane node
-
getGridView
GridView getGridView()
- Returns:
- gridview instance
-
needSave
boolean needSave(boolean rowChange, boolean onlyRealChange)
- Parameters:
rowChange
-onlyRealChange
-- Returns:
- true if there are pending changes
-
dataSave
boolean dataSave(boolean onSaveEvent)
- Parameters:
onSaveEvent
-- Returns:
- true if the save operation completed successfully
-
setTabNo
void setTabNo(int tabNo)
- Parameters:
tabNo
-
-
getTabNo
int getTabNo()
- Returns:
- tab no ( ad_tab.tabno )
-
setDetailPane
void setDetailPane(DetailPane detailPane)
- Parameters:
detailPane
-
-
getDetailPane
DetailPane getDetailPane()
- Returns:
- detailpane
-
resetDetailForNewParentRecord
void resetDetailForNewParentRecord()
reset detail data grid when parent tab current record is new and not saved yet
-
getTreePanel
ADTreePanel getTreePanel()
- Returns:
- treepanel instance
-
isEnableQuickFormButton
boolean isEnableQuickFormButton()
- Returns:
- Quick Form Button Enabled/Disabled
-
isDetailVisible
default boolean isDetailVisible()
Get is detail pane visible- Returns:
- boolean
-
getToolbarButtons
List<org.zkoss.zul.Button> getToolbarButtons()
- Returns:
- List of toolbar buttons
-
isEnableCustomizeButton
boolean isEnableCustomizeButton()
- Returns:
- customization enabled/disabled for tab
-
isEnableProcessButton
default boolean isEnableProcessButton()
- Returns:
- process Button Enabled/Disabled
-
updateToolbar
void updateToolbar(ADWindowToolbar toolbar)
Enabled/Disabled tab toolbar button- Parameters:
toolbar
- -ADWindowToolbar
-
updateDetailToolbar
void updateDetailToolbar(org.zkoss.zul.Toolbar toolbar)
Enabled/Disabled detail panel toolbar button- Parameters:
toolbar
- -Toolbar
-
-