FileDocCategorySizeDatePackage
YesNoDialogAlignmentEditor.javaAPI DocExample1525Sat Jun 02 02:39:22 BST 2001oreilly.beans.yesno

YesNoDialogAlignmentEditor

public class YesNoDialogAlignmentEditor extends PropertyEditorSupport

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetJavaInitializationString()

    switch(((Number)getValue()).intValue()) {
    default:
    case YesNoDialog.LEFT:   return "oreilly.beans.yesno.YesNoDialog.LEFT";
    case YesNoDialog.CENTER: return "oreilly.beans.yesno.YesNoDialog.CENTER";
    case YesNoDialog.RIGHT:  return "oreilly.beans.yesno.YesNoDialog.RIGHT";
    }
  
public java.lang.String[]getTags()

    return new String[] { "left", "center", "right" };
  
public voidsetAsText(java.lang.String s)

    if (s.equals("left")) setValue(new Integer(YesNoDialog.LEFT));
    else if (s.equals("center")) setValue(new Integer(YesNoDialog.CENTER));
    else if (s.equals("right")) setValue(new Integer(YesNoDialog.RIGHT));
    else throw new IllegalArgumentException(s);