@Override public void getName(AccessibleEvent e) { e.result = getText(); }
public void getName(AccessibleEvent e) { e.result = getText(); }
@Override public void getName(AccessibleEvent e) { e.result = getText(); }
@Override public void getName(AccessibleEvent e) { e.result = getText(); }
@Override String doGetStringValue(Object source) { return ((CLabel) source).getText(); }
@Override public void getName(AccessibleEvent e) { e.result = getText(); }
public String getText() { CLabel cl= (CLabel) getTopLeft(); return cl.getText(); }
public String getText() { CLabel cl= (CLabel) getTopLeft(); return cl.getText(); }
public String getText() { CLabel cl= (CLabel) getTopLeft(); return cl.getText(); }
public String getText() { CLabel cl= (CLabel) getTopLeft(); return cl.getText(); }
String getAssociatedLabel () { Control[] siblings = getParent ().getChildren (); for (int i = 0; i < siblings.length; i++) { if (siblings [i] == StyledText.this) { if (i > 0) { Control sibling = siblings [i-1]; if (sibling instanceof Label) return ((Label) sibling).getText(); if (sibling instanceof CLabel) return ((CLabel) sibling).getText(); } break; } } return null; } String stripMnemonic (String string) {
String getAssociatedLabel () { Control[] siblings = getParent ().getChildren (); for (int i = 0; i < siblings.length; i++) { if (siblings [i] == StyledText.this) { if (i > 0) { Control sibling = siblings [i-1]; if (sibling instanceof Label) return ((Label) sibling).getText(); if (sibling instanceof CLabel) return ((CLabel) sibling).getText(); } break; } } return null; } String stripMnemonic (String string) {
@Override public void widgetSelected(SelectionEvent e) { String text = fMessageLabel.getText(); if (text != null && text.length() > 0) { text = LegacyActionTools.removeMnemonics(text); Clipboard cp = new Clipboard(e.display); cp.setContents(new Object[] { text }, new Transfer[] { TextTransfer.getInstance() }); cp.dispose(); } } });
String getAssociatedLabel () { Control[] siblings = getParent ().getChildren (); for (int i = 0; i < siblings.length; i++) { if (siblings [i] == this) { if (i > 0) { Control sibling = siblings [i-1]; if (sibling instanceof Label) return ((Label) sibling).getText(); if (sibling instanceof CLabel) return ((CLabel) sibling).getText(); } break; } } return null; } @Override
String getAssociatedLabel () { Control[] siblings = getParent ().getChildren (); for (int i = 0; i < siblings.length; i++) { if (siblings [i] == StyledText.this) { if (i > 0) { Control sibling = siblings [i-1]; if (sibling instanceof Label) return ((Label) sibling).getText(); if (sibling instanceof CLabel) return ((CLabel) sibling).getText(); } break; } } return null; } String stripMnemonic (String string) {
String getAssociatedLabel () { Control[] siblings = getParent ().getChildren (); for (int i = 0; i < siblings.length; i++) { if (siblings [i] == this) { if (i > 0) { Control sibling = siblings [i-1]; if (sibling instanceof Label) return ((Label) sibling).getText(); if (sibling instanceof CLabel) return ((CLabel) sibling).getText(); } break; } } return null; } @Override
private static void renderMnemonicIndex( CLabel clabel ) { if( !isMarkupEnabledFor( clabel ) ) { String text = clabel.getText(); if( hasChanged( clabel, PROP_TEXT, text, null ) ) { int mnemonicIndex = MnemonicUtil.findMnemonicCharacterIndex( text ); if( mnemonicIndex != -1 ) { getRemoteObject( clabel ).set( PROP_MNEMONIC_INDEX, mnemonicIndex ); } } } }
private static void renderText( CLabel clabel ) { String newValue = clabel.getText(); if( hasChanged( clabel, PROP_TEXT, newValue, null ) ) { String text = newValue; if( !isMarkupEnabledFor( clabel ) ) { text = MnemonicUtil.removeAmpersandControlCharacters( newValue ); } getRemoteObject( clabel ).set( PROP_TEXT, text ); } }
private static void writeText( final CLabel label ) throws IOException { String text = label.getText(); if( WidgetLCAUtil.hasChanged( label, PROP_TEXT, text, "" ) ) { if( text == null ) { text = ""; } text = WidgetLCAUtil.escapeText( text, true ); JSWriter writer = JSWriter.getWriterFor( label ); text = WidgetLCAUtil.replaceNewLines( text, "<br/>" ); writer.set( JSConst.QX_FIELD_LABEL, text ); } }
@Override public void preserveValues( CLabel label ) { preserveProperty( label, PROP_TEXT, label.getText() ); preserveProperty( label, PROP_IMAGE, label.getImage() ); preserveProperty( label, PROP_ALIGNMENT, getAlignment( label ) ); preserveProperty( label, PROP_LEFT_MARGIN, label.getLeftMargin() ); preserveProperty( label, PROP_TOP_MARGIN, label.getTopMargin() ); preserveProperty( label, PROP_RIGHT_MARGIN, label.getRightMargin() ); preserveProperty( label, PROP_BOTTOM_MARGIN, label.getBottomMargin() ); WidgetLCAUtil.preserveBackgroundGradient( label ); }