Package org.pentaho.di.ui.core.dialog
Class PreviewRowsDialog
- java.lang.Object
-
- org.pentaho.di.ui.core.dialog.PreviewRowsDialog
-
public class PreviewRowsDialog extends Object
Displays an ArrayList of rows in a TableView.- Since:
- 19-06-2003
- Author:
- Matt
-
-
Field Summary
Fields Modifier and Type Field Description protected intlineNrstatic intMAX_BINARY_STRING_PREVIEW_SIZE
-
Constructor Summary
Constructors Constructor Description PreviewRowsDialog(org.eclipse.swt.widgets.Shell parent, org.pentaho.di.core.variables.VariableSpace space, int style, String stepName, org.pentaho.di.core.row.RowMetaInterface rowMeta, List<Object[]> rowBuffer)PreviewRowsDialog(org.eclipse.swt.widgets.Shell parent, org.pentaho.di.core.variables.VariableSpace space, int style, String stepName, org.pentaho.di.core.row.RowMetaInterface rowMeta, List<Object[]> rowBuffer, String loggingText)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDataRow(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] rowData)voidaddDialogClosedListener(DialogClosedListener listener)voiddispose()org.eclipse.swt.graphics.RectanglegetBounds()protected intgetDataForRow(org.eclipse.swt.widgets.TableItem item, Object[] row)intgetHMax()intgetHScroll()intgetVMax()intgetVScroll()booleanisAskingForMoreRows()booleanisAskingToStop()booleanisDisposed()booleanisProposingToGetMoreRows()booleanisProposingToStop()voidopen()voidsetBounds(org.eclipse.swt.graphics.Rectangle b)voidsetDynamic(boolean dynamic)voidsetHMax(int m)voidsetHScroll(int s)voidsetProposingToGetMoreRows(boolean proposingToGetMoreRows)voidsetProposingToStop(boolean proposingToStop)voidsetTitleMessage(String title, String message)voidsetVMax(int m)voidsetVScroll(int s)
-
-
-
Field Detail
-
MAX_BINARY_STRING_PREVIEW_SIZE
public static final int MAX_BINARY_STRING_PREVIEW_SIZE
- See Also:
- Constant Field Values
-
lineNr
protected int lineNr
-
-
Method Detail
-
open
public void open()
-
dispose
public void dispose()
-
getDataForRow
protected int getDataForRow(org.eclipse.swt.widgets.TableItem item, Object[] row)
-
isDisposed
public boolean isDisposed()
-
getBounds
public org.eclipse.swt.graphics.Rectangle getBounds()
-
setBounds
public void setBounds(org.eclipse.swt.graphics.Rectangle b)
-
getHScroll
public int getHScroll()
-
setHScroll
public void setHScroll(int s)
-
getVScroll
public int getVScroll()
-
setVScroll
public void setVScroll(int s)
-
getHMax
public int getHMax()
-
setHMax
public void setHMax(int m)
-
getVMax
public int getVMax()
-
setVMax
public void setVMax(int m)
-
isAskingForMoreRows
public boolean isAskingForMoreRows()
- Returns:
- true if the user is asking to grab the next rows with preview
-
isProposingToGetMoreRows
public boolean isProposingToGetMoreRows()
- Returns:
- true if the dialog is proposing to ask for more rows
-
setProposingToGetMoreRows
public void setProposingToGetMoreRows(boolean proposingToGetMoreRows)
- Parameters:
proposingToGetMoreRows- Set to true if you want to display a button asking for more preview rows.
-
isAskingToStop
public boolean isAskingToStop()
- Returns:
- the askingToStop
-
isProposingToStop
public boolean isProposingToStop()
- Returns:
- the proposingToStop
-
setProposingToStop
public void setProposingToStop(boolean proposingToStop)
- Parameters:
proposingToStop- the proposingToStop to set
-
setDynamic
public void setDynamic(boolean dynamic)
-
addDataRow
public void addDataRow(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] rowData)
-
addDialogClosedListener
public void addDialogClosedListener(DialogClosedListener listener)
-
-