|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.impl.XulElement
org.zkoss.zul.Window
org.adempiere.webui.component.Window
org.adempiere.webui.panel.InfoPanel
public abstract class InfoPanel
Search Information and return selection - Base Class. Based on Info written by Jorg Janke
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.zkoss.zul.Window |
|---|
Window.ExtraCtrl |
| Field Summary | |
|---|---|
protected ConfirmPanel |
confirmPanel
|
protected WListbox |
contentPanel
|
protected CLogger |
log
Logger |
protected String |
p_keyColumn
Key Column Name |
protected ColumnInfo[] |
p_layout
Layout of Grid |
protected boolean |
p_loadedOK
Loading success indicator |
protected boolean |
p_multipleSelection
Enable more than one selection |
protected String |
p_tableName
Table Name |
protected String |
p_whereClause
Initial WHERE Clause |
protected int |
p_WindowNo
Master (owning) Window |
protected WStatusBar |
statusBar
|
| Fields inherited from class org.adempiere.webui.component.Window |
|---|
MODE_EMBEDDED, MODE_MODAL, MODE_OVERLAPPED, MODE_POPUP |
| Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
RS_NO_DISPLAY, RS_NO_HEIGHT, RS_NO_WIDTH |
| Fields inherited from interface org.zkoss.zk.ui.Component |
|---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
| Constructor Summary | |
|---|---|
protected |
InfoPanel(int WindowNo,
String tableName,
String keyColumn,
boolean multipleSelection,
String whereClause)
Detail Constructor |
| Method Summary | |
|---|---|
void |
addValueChangeListener(ValueChangeListener listener)
|
static InfoPanel |
create(int WindowNo,
String tableName,
String keyColumn,
String value,
boolean multiSelection,
String whereClause)
|
void |
dispose(boolean ok)
Dispose and save Selection |
protected void |
executeQuery()
Execute Query |
void |
fireValueChange(ValueChangeEvent event)
|
protected int |
getAD_Window_ID(String tableName,
boolean isSOTrx)
Get Zoom Window |
Vector<String> |
getColumnHeader(ColumnInfo[] p_layout)
|
String[] |
getEvents()
|
Object |
getSelectedKey()
Get (first) selected Key |
Object[] |
getSelectedKeys()
Get selected Keys |
protected Integer |
getSelectedRowKey()
Get the key of currently selected row |
String |
getSelectedSQL()
Get where clause for (first) selected key |
boolean |
isCancelled()
Is cancelled? |
boolean |
loadedOK()
Loaded correctly |
void |
onEvent(Event event)
|
protected void |
prepareTable(ColumnInfo[] layout,
String from,
String where,
String orderBy)
|
protected void |
renderItems()
|
protected void |
saveSelection()
Save Selection - Called by dispose |
void |
setStatusDB(String text)
Set Status DB |
void |
setStatusLine(String text,
boolean error)
Set Status Line |
static void |
showAsset(int WindowNo)
Show Asset Info (non modal) |
static void |
showAssignment(int WindowNo,
String value)
Show Assignment Info (non modal) |
static void |
showBPartner(int WindowNo)
Show BPartner Info (non modal) |
static void |
showCashLine(int WindowNo,
String value)
Show Cash Line Info (non modal) |
static void |
showInOut(int WindowNo,
String value)
Show Shipment Info (non modal) |
static void |
showInvoice(int WindowNo,
String value)
Show Invoice Info (non modal) |
static void |
showOrder(int WindowNo,
String value)
Show Order Info (non modal) |
static void |
showPayment(int WindowNo,
String value)
Show Payment Info (non modal) |
static void |
showProduct(int WindowNo)
Show Product Info (non modal) |
void |
zoom()
|
| Methods inherited from class org.zkoss.zul.Window |
|---|
clone, doEmbedded, doHighlighted, doModal, doOverlapped, doPopup, getBorder, getCaption, getContentSclass, getContentStyle, getDefaultActionOnShow, getMode, getOuterAttrs, getPosition, getRealStyle, getSclass, getTitle, getTitleSclass, inEmbedded, inHighlighted, inModal, inOverlapped, inPopup, insertBefore, isClosable, isSizable, newExtraCtrl, onChildRemoved, onClose, onModal, setBorder, setClosable, setContentSclass, setContentStyle, setDefaultActionOnShow, setDraggable, setMode, setMode, setPage, setParent, setPosition, setSclass, setSizable, setTitle, setVisible |
| Methods inherited from class org.zkoss.zul.impl.XulElement |
|---|
getAction, getActionAttrs, getAllOnClickAttrs, getContext, getCtrlKeys, getInnerAttrs, getPopup, getTooltip, setAction, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip |
| Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
focus, getAllOnClickAttrs, getDraggable, getDroppable, getHeight, getLeft, getRealSclass, getRealStyleFlags, getStyle, getTooltiptext, getTop, getWidth, getZIndex, setClass, setDroppable, setFocus, setHeight, setLeft, setStyle, setTooltiptext, setTop, setWidth, setZIndex |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.adempiere.webui.event.WTableModelListener |
|---|
tableChanged |
| Methods inherited from interface org.zkoss.zk.ui.IdSpace |
|---|
getFellow, getFellowIfAny, getFellows |
| Field Detail |
|---|
protected ConfirmPanel confirmPanel
protected int p_WindowNo
protected String p_tableName
protected String p_keyColumn
protected boolean p_multipleSelection
protected String p_whereClause
protected WStatusBar statusBar
protected ColumnInfo[] p_layout
protected boolean p_loadedOK
protected CLogger log
protected WListbox contentPanel
| Constructor Detail |
|---|
protected InfoPanel(int WindowNo,
String tableName,
String keyColumn,
boolean multipleSelection,
String whereClause)
WindowNo - WindowNotableName - tableNamekeyColumn - keyColumnwhereClause - whereClause| Method Detail |
|---|
public static InfoPanel create(int WindowNo,
String tableName,
String keyColumn,
String value,
boolean multiSelection,
String whereClause)
public static void showBPartner(int WindowNo)
WindowNo - window nopublic static void showAsset(int WindowNo)
frame - Parent FrameWindowNo - window nopublic static void showProduct(int WindowNo)
frame - Parent FrameWindowNo - window no
public static void showOrder(int WindowNo,
String value)
frame - Parent FrameWindowNo - window novalue - query value
public static void showInvoice(int WindowNo,
String value)
frame - Parent FrameWindowNo - window novalue - query value
public static void showInOut(int WindowNo,
String value)
frame - Parent FrameWindowNo - window novalue - query value
public static void showPayment(int WindowNo,
String value)
frame - Parent FrameWindowNo - window novalue - query value
public static void showCashLine(int WindowNo,
String value)
frame - Parent FrameWindowNo - window novalue - query value
public static void showAssignment(int WindowNo,
String value)
frame - Parent FrameWindowNo - window novalue - query valuepublic boolean loadedOK()
public void setStatusLine(String text,
boolean error)
text - texterror - errorpublic void setStatusDB(String text)
text - text
protected void prepareTable(ColumnInfo[] layout,
String from,
String where,
String orderBy)
protected void executeQuery()
protected void renderItems()
public Vector<String> getColumnHeader(ColumnInfo[] p_layout)
protected void saveSelection()
protected Integer getSelectedRowKey()
public Object[] getSelectedKeys()
public Object getSelectedKey()
public boolean isCancelled()
public String getSelectedSQL()
public String[] getEvents()
protected int getAD_Window_ID(String tableName,
boolean isSOTrx)
tableName - table nameisSOTrx - sales trx
public void onEvent(Event event)
onEvent in interface EventListenerpublic void zoom()
public void addValueChangeListener(ValueChangeListener listener)
public void fireValueChange(ValueChangeEvent event)
public void dispose(boolean ok)
ok - OK pressed
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||