LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.jquery.component.table
Class LyJQTable

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.web.LyWebObject
          extended by leon.view.web.jquery.component.LyJQInternalView
              extended by leon.view.web.jquery.component.fieldItem.LyJQFieldItem
                  extended by leon.view.web.jquery.component.panel.LyJQPanel
                      extended by leon.view.web.jquery.component.table.LyJQTable
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalFieldItem, LyGraphicalPanel, LyGraphicalTable, LyViewComponent, LyFreeInterface, LySetEnabledInterface, LySetIdleInterface, LySetLabelInterface, LySetPopupMenuInterface, LySetTableInterface, LySetVisibleInterface, LyWebComponent

public class LyJQTable
extends LyJQPanel
implements LyGraphicalTable, LySetVisibleInterface, LySetTableInterface, LySetIdleInterface

LyTable JQUERY internal view implementation


Field Summary
 
Fields inherited from class leon.view.web.jquery.component.fieldItem.LyJQFieldItem
__VERSION
 
Fields inherited from class leon.view.web.LyWebObject
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID
 
Fields inherited from interface leon.view.graphic.LyGraphicalTable
__VERSION
 
Fields inherited from interface leon.view.setinterface.LySetVisibleInterface
__VERSION
 
Fields inherited from interface leon.view.setinterface.LySetTableInterface
__VERSION
 
Fields inherited from interface leon.view.setinterface.LySetIdleInterface
__VERSION
 
Fields inherited from interface leon.view.setinterface.LySetPopupMenuInterface
__VERSION
 
Constructor Summary
LyJQTable(LyTable table)
           
 
Method Summary
 void addRow(LyRow row)
          Adds the given row at the end of the current table.
 void addRow(LyRow row, int idx)
          Adds the given row at the given position in the current table.
 boolean containsImage()
           
 void freezeColumn(int idx)
          Freezes the column at the given index in the view.
 LyRow getActiveRow()
           
 java.util.List<java.util.List<LyComponent>> getHeadersArray()
          get headers tree
 int getHeadersDepth()
          get headers imbrication depth
 LyJQFooters getJQFooters()
           
 LyJQHeaders getJQHeaders()
           
 LyJQRows getJQRows()
           
 LyTable getLyTable()
          get Lytable component
 int getNbRows(LyRows rows)
           
 LyRow getRow(int i)
          Gets the row at the specified position.
 java.lang.String getSortString(int sortIndex)
          Returns the string that must be displayed in headers for sort.
 int getTableNbColumns()
           
 void hideRow(int idx, boolean hide)
          Hides or show the row at the given index.
 boolean isEditable()
          Indicates if the field item is editable.
 boolean isTable()
           
 void reloadTable()
           
 void removeRow(int idx)
          Removes the row at the given index from the current table.
 void removeRow(LyRow row)
          Removes the given row from the current table.
 void selectAll(boolean select, boolean updateView)
          Selects or unselects all objects of the table.
 void selectRow(int idx, boolean select)
          Selects or unselects the row at the given index of the table.
 void selectRow(LyRow row, boolean select)
          Selects or unselects the specified row in the table.
 void setEnabled(boolean enabled)
          Updates attribute enabled to the given value.
 void setFooters(LyFooters footers)
          Sets sub-component footers.
 void setHeaders(LyHeaders headers)
          Sets sub-component headers.
 void setIdle(boolean status)
          Sets or unset the idle mode on the component/node.
 void setJQFooters()
           
 void setJQHeaders()
           
 void setJQRows()
           
 void setNRows(int nRows)
          Updates attribute nRows to the given value.
 void setVisible(boolean status)
          Sets the visibility status of this component.
 void showRow(int idx)
          Scrolls to make visible to the user the row at the given index .
 void swapRows(int idx1, int idx2)
          Swaps the rows at the specified indexes.
 void updateRow(LyRow row)
          Updates the given row.
 boolean useAjaxLoading(boolean isPrintMode)
          Indicates whether table content must be loaded in a separate Ajax request.
 void writeHtml(LyWebPageWriter pw)
          Write HTML description corresponding to this component.
 
Methods inherited from class leon.view.web.jquery.component.panel.LyJQPanel
isChart, isForm, isGantt, isMap, isNotice, isPanel, isTable, isTree, setPopupMenu
 
Methods inherited from class leon.view.web.jquery.component.fieldItem.LyJQFieldItem
canDisabled, getCaption, getController, getFieldItem, getForm, getFormField, getReloadScript, getTarget, isEnabled, isLabelInstance, isMail, isNetscape, isOptional, isPrintMode, isUrl, isUrlRecurse, needCheck, setLabel
 
Methods inherited from class leon.view.web.jquery.component.LyJQInternalView
getConvertedHTML, getEncoding, getId, getJavascriptStrId, getJSWithoutTranslateString, getTreatedInternalId, isIE, setProperty
 
Methods inherited from class leon.view.web.LyWebObject
addFileScript, decodeUrl, displayUpPage, encodeUrl, encodeUrlXhtml, expandUrl, free, getDisabledImageUrl, getFontSize, getFontString, getFontString, getFontString, getHexColor, getHexColor, getHtmlEntitiesString, getHtmlString, getImageSize, getImageSize, getImageUrl, getJavascriptString, getLastFrameName, getLyFont, getMessage, getRootUrl, getRootURL, getScrollHeightForSplitter, getUrl, getWebViewManager, refresh, replaceUrl, replaceUrl, setUpdating, updateRefreshInfo, writeJson
 
Methods inherited from class leon.view.graphic.LyGraphicalObject
expand, getBounds, getChildrenBounds, getEnv, getEnvironment, getIdCode, getIntResource, getMessage, getResource, getString, getString, getString, getViewComponent, getViewManager, isFreed, isFreeing, isImageAnimated, processDemand, processDemand, testResource, translate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface leon.view.graphic.LyGraphicalComponent
free, getViewComponent
 

Constructor Detail

LyJQTable

public LyJQTable(LyTable table)
Method Detail

getLyTable

public LyTable getLyTable()
get Lytable component


writeHtml

public void writeHtml(LyWebPageWriter pw)
Description copied from interface: LyWebComponent
Write HTML description corresponding to this component.

Specified by:
writeHtml in interface LyWebComponent
Overrides:
writeHtml in class LyJQFieldItem
Parameters:
pw - the page writer

getHeadersDepth

public int getHeadersDepth()
get headers imbrication depth

Returns:
depth

setEnabled

public void setEnabled(boolean enabled)
Description copied from interface: LyGraphicalTable
Updates attribute enabled to the given value.

Specified by:
setEnabled in interface LyGraphicalTable
Specified by:
setEnabled in interface LySetEnabledInterface
Parameters:
enabled - Boolean indicating if attribute enabled is set or unset.
See Also:
LyGraphicalTable.setEnabled(boolean)

setHeaders

public void setHeaders(LyHeaders headers)
Description copied from interface: LyGraphicalTable
Sets sub-component headers.

Specified by:
setHeaders in interface LyGraphicalTable
Parameters:
headers - New value of headers
See Also:
LyGraphicalTable.setHeaders(leon.view.LyHeaders)

setFooters

public void setFooters(LyFooters footers)
Description copied from interface: LyGraphicalTable
Sets sub-component footers.

Specified by:
setFooters in interface LyGraphicalTable
Parameters:
footers - New value of footers
See Also:
LyGraphicalTable.setFooters(leon.view.LyFooters)

getHeadersArray

public java.util.List<java.util.List<LyComponent>> getHeadersArray()
get headers tree

Returns:
headers tree

getTableNbColumns

public int getTableNbColumns()
Returns:
table column number

setIdle

public void setIdle(boolean status)
Description copied from interface: LySetIdleInterface
Sets or unset the idle mode on the component/node.

Specified by:
setIdle in interface LySetIdleInterface
Parameters:
status - new idle status (LySetIdleInterface interface)
See Also:
LySetIdleInterface.setIdle(boolean)

addRow

public void addRow(LyRow row)
Description copied from interface: LySetTableInterface
Adds the given row at the end of the current table.

Specified by:
addRow in interface LySetTableInterface
Parameters:
row - the row to add
See Also:
LySetTableInterface.addRow(leon.view.LyRow)

addRow

public void addRow(LyRow row,
                   int idx)
Description copied from interface: LySetTableInterface
Adds the given row at the given position in the current table.

Specified by:
addRow in interface LySetTableInterface
Parameters:
row - the row to add
idx - the position where the row has to be added
See Also:
LySetTableInterface.addRow(leon.view.LyRow, int)

removeRow

public void removeRow(LyRow row)
Description copied from interface: LySetTableInterface
Removes the given row from the current table.

Specified by:
removeRow in interface LySetTableInterface
Parameters:
row - the row to remove
See Also:
LySetTableInterface.removeRow(leon.view.LyRow)

removeRow

public void removeRow(int idx)
Description copied from interface: LySetTableInterface
Removes the row at the given index from the current table.

Specified by:
removeRow in interface LySetTableInterface
Parameters:
idx - the index of the row to remove
See Also:
LySetTableInterface.removeRow(int)

swapRows

public void swapRows(int idx1,
                     int idx2)
Description copied from interface: LySetTableInterface
Swaps the rows at the specified indexes.

Specified by:
swapRows in interface LySetTableInterface
Parameters:
idx1 - the position of the first row to swap
idx2 - the position of the second row to swap
See Also:
LySetTableInterface.swapRows(int, int)

selectRow

public void selectRow(LyRow row,
                      boolean select)
Description copied from interface: LySetTableInterface
Selects or unselects the specified row in the table.

Specified by:
selectRow in interface LySetTableInterface
Parameters:
row - the row to select or unselect
select - true if the row has to be selected, false otherwise
See Also:
LySetTableInterface.selectRow(leon.view.LyRow, boolean)

selectRow

public void selectRow(int idx,
                      boolean select)
Description copied from interface: LySetTableInterface
Selects or unselects the row at the given index of the table.

Specified by:
selectRow in interface LySetTableInterface
Parameters:
idx - index of the row to select or unselect
select - true if the row has to be selected, false otherwise
See Also:
LySetTableInterface.selectRow(int, boolean)

selectAll

public void selectAll(boolean select,
                      boolean updateView)
Description copied from interface: LySetTableInterface
Selects or unselects all objects of the table.

Specified by:
selectAll in interface LySetTableInterface
Parameters:
select - true if all objects have to be selected, false otherwise
updateView - indicates if the view must be updated or not.
See Also:
LySetTableInterface.selectAll(boolean, boolean)

showRow

public void showRow(int idx)
Description copied from interface: LySetTableInterface
Scrolls to make visible to the user the row at the given index .

Specified by:
showRow in interface LySetTableInterface
Parameters:
idx - the index of the row to show
See Also:
LySetTableInterface.showRow(int)

getActiveRow

public LyRow getActiveRow()

getRow

public LyRow getRow(int i)
Gets the row at the specified position.

Parameters:
i - the row position
Returns:
the LySwingRow at position i

reloadTable

public void reloadTable()

hideRow

public void hideRow(int idx,
                    boolean hide)
Description copied from interface: LySetTableInterface
Hides or show the row at the given index.

Specified by:
hideRow in interface LySetTableInterface
Parameters:
idx - the index of the row to show or hide
hide - indicates if the row has to be shown or hided
See Also:
LySetTableInterface.hideRow(int, boolean)

freezeColumn

public void freezeColumn(int idx)
Description copied from interface: LySetTableInterface
Freezes the column at the given index in the view.

Specified by:
freezeColumn in interface LySetTableInterface
Parameters:
idx - the index of the column to freeze
See Also:
LySetTableInterface.freezeColumn(int)

updateRow

public void updateRow(LyRow row)
Description copied from interface: LySetTableInterface
Updates the given row.

Specified by:
updateRow in interface LySetTableInterface
Parameters:
row - the row to update
See Also:
LySetTableInterface.updateRow(leon.view.LyRow)

setVisible

public void setVisible(boolean status)
Description copied from interface: LySetVisibleInterface
Sets the visibility status of this component.

Specified by:
setVisible in interface LySetVisibleInterface
Parameters:
status - new visibility status, if true the component will be shown, if false it will be hiden
See Also:
LySetVisibleInterface.setVisible(boolean)

containsImage

public boolean containsImage()
Returns:
if row contains an image

isTable

public boolean isTable()

getJQFooters

public LyJQFooters getJQFooters()

setJQFooters

public void setJQFooters()

getJQRows

public LyJQRows getJQRows()

setJQRows

public void setJQRows()

getJQHeaders

public LyJQHeaders getJQHeaders()

setJQHeaders

public void setJQHeaders()

getNbRows

public int getNbRows(LyRows rows)

setNRows

public void setNRows(int nRows)
Description copied from interface: LyGraphicalTable
Updates attribute nRows to the given value.

Specified by:
setNRows in interface LyGraphicalTable
Parameters:
nRows - New value of nRows.

isEditable

public boolean isEditable()
Description copied from class: LyJQFieldItem
Indicates if the field item is editable.

Overrides:
isEditable in class LyJQFieldItem
Returns:
true if it is editable, false otherwise

getSortString

public java.lang.String getSortString(int sortIndex)
Returns the string that must be displayed in headers for sort.


useAjaxLoading

public boolean useAjaxLoading(boolean isPrintMode)
Indicates whether table content must be loaded in a separate Ajax request.


(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com