| java.lang.Object com.salmonllc.html.HtmlComponent com.salmonllc.html.HtmlContainer com.salmonllc.html.HtmlTable com.salmonllc.examples.example2.DBSelector
DBSelector | public class DBSelector extends HtmlTable implements PageListener(Code) | | This class implements a combination component.
It's a drop down list of database tables and a list box of columns in a table.
When the user chooses a table, it automatically submits the page. The component
figures out which table the user selected and populates the list box with the
appropriate columns.
This component uses the com.salmonllc.sql.DataDictionary component to query the database engine for the tables and columns.
|
getSelectedColumns | public ColumnDefinition[] getSelectedColumns()(Code) | | This method returns an array of column definition objects, one for each column selected in the list box.
|
pageRequestEnd | public void pageRequestEnd(PageEvent p) throws Exception(Code) | | This event is part of the PageListener interface. It is only implemented here to fill out the interface, but the component doesn't use it.
|
pageRequested | public void pageRequested(PageEvent p) throws Exception(Code) | | This event is part of the PageListener interface. It is only implemented here to fill out the interface, but the component doesn't use it.
|
pageSubmitEnd | public void pageSubmitEnd(PageEvent p)(Code) | | This method occurs each time a page is submitted.
The hidden field in this component is checked to see if this is the comp that submitted the page.
|
pageSubmitted | public void pageSubmitted(PageEvent p)(Code) | | This event is part of the PageListener interface. It is only implemented here to fill out the interface, but the component doesn't use it.
|
setParent | public void setParent(HtmlComponent parent)(Code) | | We can't set the submit javascript until we know what form this component is in and we don't know that until the component is added to the container. So we can override setParent and set the data there
|
Methods inherited from com.salmonllc.html.HtmlTable | public void add(HtmlComponent comp)(Code)(Java Doc) public void addDisplay(String name, String caption, HtmlComponent component) throws Exception(Code)(Java Doc) public void addDisplay(String name, String caption, HtmlComponent component, boolean sameRow) throws Exception(Code)(Java Doc) public void addDisplay(String name, String caption, HtmlComponent component, boolean sameRow, HtmlTableCellProperties propCaption, HtmlTableCellProperties propSearch) throws Exception(Code)(Java Doc) public boolean executeEvent(int eventType) throws Exception(Code)(Java Doc) public void generateHTML(java.io.PrintWriter p, int rowNo) throws Exception(Code)(Java Doc) public void generateInitialHTML(java.io.PrintWriter p) throws Exception(Code)(Java Doc) public String getAlign()(Code)(Java Doc) public String getBackgroundColor()(Code)(Java Doc) public int getBorder()(Code)(Java Doc) public HtmlComponent getCaptionComp(String name)(Code)(Java Doc) public int getCellPadding()(Code)(Java Doc) public int getCellSpacing()(Code)(Java Doc) public int getColumnHeight(int column)(Code)(Java Doc) public int getColumnWidth(int column)(Code)(Java Doc) public HtmlComponent getComponent(String name)(Code)(Java Doc) public Enumeration getComponents()(Code)(Java Doc) public int getHeight()(Code)(Java Doc) public int getRowCount()(Code)(Java Doc) public HtmlTableRowProperties getRowProperty(int propertyRow)(Code)(Java Doc) public String getRowStyleClassName()(Code)(Java Doc) public HtmlComponent getSearchComp(String name)(Code)(Java Doc) public int getSizeOption()(Code)(Java Doc) public String getTheme()(Code)(Java Doc) public int getWidth()(Code)(Java Doc) public void insertRow(int row)(Code)(Java Doc) public boolean processParms(Hashtable parms, int rowNo) throws Exception(Code)(Java Doc) public void remove(HtmlComponent comp)(Code)(Java Doc) public void removeAll()(Code)(Java Doc) public void removeRow(int row)(Code)(Java Doc) public void removeRow(HtmlComponent comp)(Code)(Java Doc) public void setAlign(String align)(Code)(Java Doc) public void setAllowNullCells(boolean value)(Code)(Java Doc) public void setBackgroundColor(String value)(Code)(Java Doc) public void setBorder(int border)(Code)(Java Doc) public void setCellPadding(int value)(Code)(Java Doc) public void setCellSpacing(int value)(Code)(Java Doc) public void setColumnWidth(int column, int width)(Code)(Java Doc) public void setComponentAt(int row, int column, HtmlComponent comp)(Code)(Java Doc) public void setComponentAt(int row, int column, HtmlComponent comp, HtmlTableCellProperties props)(Code)(Java Doc) public void setComponents(HtmlComponent comp)(Code)(Java Doc) public void setComponents(HtmlComponent comp, HtmlTableCellProperties props)(Code)(Java Doc) public void setCorrectColSpan(boolean correctColSpan)(Code)(Java Doc) public void setHeight(int height)(Code)(Java Doc) public void setRowProperty(int row, HtmlTableRowProperties rowProp)(Code)(Java Doc) public void setRowStyleClassName(String string)(Code)(Java Doc) public void setSizeOption(int option)(Code)(Java Doc) public void setTheme(String theme)(Code)(Java Doc) public void setWidth(int width)(Code)(Java Doc)
|
|
|