コード例 #1
0
 /**
  * Sets the visibility of the ascii text.
  *
  * @param visible the visibility of the ascii text
  * @see #getAsciiVisible()
  */
 public void setAsciiVisible(boolean visible) {
   ((GridData) asciiText.getLayoutData()).exclude = !visible;
   asciiText.setVisible(visible);
   ((GridLayout) composite.getLayout()).makeColumnsEqualWidth =
       visible && brailleText.getVisible();
   composite.layout();
 }
コード例 #2
0
 /**
  * Returns if the ascii text is visible.
  *
  * @return the current visibility of the ascii text
  * @see #setAsciiVisible(boolean)
  */
 public boolean getAsciiVisible() {
   return asciiText.getVisible();
 }
コード例 #3
0
 /**
  * Returns if the braille text is visible.
  *
  * @return the current visibility of the braille text
  * @see #setBrailleVisible(boolean)
  */
 public boolean getBrailleVisible() {
   return brailleText.getVisible();
 }