Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.edit.wizards
Class RPGLCEntry

java.lang.Object
  extended by com.ibm.etools.iseries.edit.wizards.RPGLCEntry

public class RPGLCEntry
extends Object

Since:
5.1.2

Constructor Summary
RPGLCEntry(Composite parent, boolean text, int style, String specialChars)
           
RPGLCEntry(Composite parent, boolean text, int style, String specialChars, boolean alwaysQuoted)
           
RPGLCEntry(Composite parent, String specialChars)
           
RPGLCEntry(Composite parent, String specialChars, boolean alwaysQuoted)
           
 
Method Summary
 void addModifyListener(ModifyListener listener)
           
 void addSelectionListener(SelectionListener listener)
           
 void disableQuotes()
          removes quotes from the control and disables the toggle button 53534
 void enableQuotes()
          Enables the toggle button so that quotes can be added 53534
 Control getControl()
           
 boolean getEnabled()
           
 String getItem(int index)
           
 int getItemCount()
           
 int getSelectionIndex()
           
 String getText()
           
 boolean isFocusControl()
          indicates whether any Control for this entry has focus
 String massageQuotes(String text)
          this method is used to massage text and double up any single quotes found in the specified text
 void modifyText(ModifyEvent arg0)
           
 void removeModifyListener(ModifyListener listener)
           
 void setAllowEmptyQuotedString(boolean value)
          Used to set whether or not empty quoted strings should be allowed
 void setDontQuoteUnfinishedLiteral(boolean value)
          Used to set whether or not you dont want to quote unfinised literals (ie X' )
 void setEnabled(boolean enabled)
           
 void setFocus()
           
 void setItems(String[] items)
           
 void setLayoutData(Object ld)
           
 void setOverrideToggle(boolean value)
          used to override the logic which determines the toggle button enablement
 void setQuotesOn(boolean value)
          indicate whether quotes should be on or off for this control
 void setText(String text1)
           
 void setTextLimit(int limit)
           
 void setToggleEnabled(boolean value)
          use to set enablement of the toggle button
 void setToolTipText(String tooltips)
           
 void setUseValidator(boolean value)
          indicate whether or not the control should use the validator when modifying text
 void setValidator(ISystemValidator validator)
          Set the validator to use for determining quotes
 void widgetDefaultSelected(SelectionEvent arg0)
           
 void widgetSelected(SelectionEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RPGLCEntry

public RPGLCEntry(Composite parent,
                  String specialChars)

RPGLCEntry

public RPGLCEntry(Composite parent,
                  String specialChars,
                  boolean alwaysQuoted)

RPGLCEntry

public RPGLCEntry(Composite parent,
                  boolean text,
                  int style,
                  String specialChars)

RPGLCEntry

public RPGLCEntry(Composite parent,
                  boolean text,
                  int style,
                  String specialChars,
                  boolean alwaysQuoted)
Method Detail

setValidator

public void setValidator(ISystemValidator validator)
Set the validator to use for determining quotes


setEnabled

public void setEnabled(boolean enabled)

modifyText

public void modifyText(ModifyEvent arg0)

widgetSelected

public void widgetSelected(SelectionEvent e)

widgetDefaultSelected

public void widgetDefaultSelected(SelectionEvent arg0)

addModifyListener

public void addModifyListener(ModifyListener listener)

removeModifyListener

public void removeModifyListener(ModifyListener listener)

setFocus

public void setFocus()

getText

public String getText()

setText

public void setText(String text1)

setTextLimit

public void setTextLimit(int limit)

getControl

public Control getControl()

setToolTipText

public void setToolTipText(String tooltips)

setLayoutData

public void setLayoutData(Object ld)

getEnabled

public boolean getEnabled()

addSelectionListener

public void addSelectionListener(SelectionListener listener)

setItems

public void setItems(String[] items)

getItem

public String getItem(int index)

getItemCount

public int getItemCount()

getSelectionIndex

public int getSelectionIndex()

disableQuotes

public void disableQuotes()
removes quotes from the control and disables the toggle button 53534


enableQuotes

public void enableQuotes()
Enables the toggle button so that quotes can be added 53534


isFocusControl

public boolean isFocusControl()
indicates whether any Control for this entry has focus


setQuotesOn

public void setQuotesOn(boolean value)
indicate whether quotes should be on or off for this control

Parameters:
value - true if quotes are to be displayed, false otherwise.

setUseValidator

public void setUseValidator(boolean value)
indicate whether or not the control should use the validator when modifying text

Parameters:
value - true if the control should use the validator to detemine if quotes are needed

massageQuotes

public String massageQuotes(String text)
this method is used to massage text and double up any single quotes found in the specified text

Parameters:
text - the text to double the quotes
Returns:
the text with all single quotes doubled up.

setToggleEnabled

public void setToggleEnabled(boolean value)
use to set enablement of the toggle button

Parameters:
value - true if the toggle button should be always on, false if the button should be always off

setOverrideToggle

public void setOverrideToggle(boolean value)
used to override the logic which determines the toggle button enablement

Parameters:
value - true if the toggle logic is to be ignored, false otherwise

setAllowEmptyQuotedString

public void setAllowEmptyQuotedString(boolean value)
Used to set whether or not empty quoted strings should be allowed

Parameters:
value - true if you want to allow ''
Since:
6.0.1 //60475

setDontQuoteUnfinishedLiteral

public void setDontQuoteUnfinishedLiteral(boolean value)
Used to set whether or not you dont want to quote unfinised literals (ie X' )

Parameters:
value - True if unifinished literals should not be automatically quoted.
Since:
6.0.1 //60475

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.