Source code: com/flexstor/common/awt/field/ComponentI.java
1 /*
2 * ComponentI.java
3 *
4 * Copyright $Date: 2003/08/11 02:22:44 $ FLEXSTOR.net Inc.
5 *
6 * This work is licensed for use and distribution under license terms found at
7 * http://www.flexstor.org/license.html
8 *
9 */
10
11 package com.flexstor.common.awt.field;
12
13 import java.awt.Dimension;
14
15 import com.flexstor.common.parsers.ValidatorI;
16
17 public interface ComponentI
18 {
19 public static final int COMBO_FIELD_HEIGHT = 28;
20 public static final int COMPONENT_HEIGHT = 26;
21 public static final int TEXT_AREA_HEIGHT = 100;
22 public static final int MAX_FIELD_LENGTH = 2000;
23
24 public void setText( String sText );
25 public String getText();
26 public void setId( long nId );
27 public long getId();
28
29 public void clear ( boolean bNotify );
30 public void setEnabled ( boolean nEnabled );
31 public boolean getEnabled ( );
32 public Dimension getMinimumSize ( );
33 public Dimension getPreferredSize ( );
34 public void requestFocus ( );
35 public void setBounds ( int x, int y, int width, int height );
36 public boolean verify ( boolean bCheckRequired );
37 public void formatCase ( );
38 public boolean quietVerify ( );
39 public boolean isBlank ( );
40 public void setRequired ( boolean bRequired );
41 public boolean isRequired ( );
42 public void setCustomValidator ( ValidatorI validator );
43 public void cleanup();
44 }