|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.beans.ui.BeanHelper
public class BeanHelper
A BeanHelper
is a ArcObject Java helper class. It helps ArcObject
JavaBeans manipulate the status of their properties during the design-time.
Field Summary | |
---|---|
static Font |
BEAN_NAME_FONT
|
static String |
PROPERTY_APPEARANCE
|
static String |
PROPERTY_BACKCOLOR
|
static String |
PROPERTY_BORDER_STYLE
|
static String |
PROPERTY_DOCUMENTFILENAME
|
static String |
PROPERTY_ESRIENABLED
|
static String |
PROPERTY_KEYINTERCEPT
|
static String |
PROPERTY_MOUSEPOINTER
|
static String |
PROPERTY_OLEDROPENABLED
|
static String |
PROPERTY_SHOWMAPTIPS
|
static String |
PROPERTY_SHOWSCROLLBARS
|
static String |
PROPERTY_TIPSTYLE
|
Constructor Summary | |
---|---|
BeanHelper()
|
Method Summary | |
---|---|
void |
addTimerAction(ActionListener listener)
Adds an ActionListener to the internal timer. |
boolean |
esri_isEnabled()
Returns true if the component is enabled. |
void |
esri_setEnabled(boolean rhs1)
|
int |
getAppearance()
Gets the appearance |
int |
getBackColor()
Returns the background color |
int |
getBorderStyle()
Gets the border style |
Dimension |
getDefaultPerferredSize()
Returns the default size |
String |
getDocumentFilename()
Returns the document filename |
int |
getKeyIntercept()
return 1 if the key intercept is enabled. |
int |
getMousePointer()
Gets the mouse pointer style |
int |
getTipStyle()
Gets the tips style. |
boolean |
isOleDropEnabled()
Return ture if the OLE srop event is enabled. |
boolean |
isOnlyOnce()
|
boolean |
isRunning()
Tests if the timer is still running |
boolean |
isShowMapTips()
Returns true if the map tips is shown |
boolean |
isShowScrollbars()
Returns ture if the scroll bar is visible, otherwise is false; |
void |
paintInDesignTime(Graphics g,
Dimension d,
String name,
Image image,
boolean page)
Paints the name of the component during the design-time. |
void |
setAppearance(int appearance)
Sets the appearance |
void |
setBackColor(int rhs1)
Sets the background color. |
void |
setBorderStyle(int borderStyle)
Sets border style |
void |
setDocumentFilename(String filename)
Sets a document filename |
void |
setKeyIntercept(int key)
Enables key intercept if the key = 1 |
void |
setMousePointer(int mousePointer)
Sets the mouse pointer style |
void |
setOleDropEnabled(boolean ole)
Sets OLE drop event is eanbled. |
void |
setShowMapTips(boolean tips)
Sets if the map tips is shown |
void |
setShowScrollbars(boolean rhs1)
Sets the scroll bar is invisible ot visible. |
void |
setTipStlyes(int style)
Sets the tips style. |
void |
startTimer()
Sterts an internal timer. |
void |
stopTimer()
Stops the internal timer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROPERTY_BORDER_STYLE
public static final String PROPERTY_APPEARANCE
public static final String PROPERTY_MOUSEPOINTER
public static final String PROPERTY_TIPSTYLE
public static final String PROPERTY_OLEDROPENABLED
public static final String PROPERTY_KEYINTERCEPT
public static final String PROPERTY_ESRIENABLED
public static final String PROPERTY_SHOWSCROLLBARS
public static final String PROPERTY_SHOWMAPTIPS
public static final String PROPERTY_BACKCOLOR
public static final String PROPERTY_DOCUMENTFILENAME
public static final Font BEAN_NAME_FONT
Constructor Detail |
---|
public BeanHelper()
Method Detail |
---|
public Dimension getDefaultPerferredSize()
public void paintInDesignTime(Graphics g, Dimension d, String name, Image image, boolean page)
g
- Graphics a Graphic content objectd
- Dimension a speified dimensionname
- String a bean nanepage
- boolean ture if it is a PageLayout beanpublic void addTimerAction(ActionListener listener)
ActionListener
to the internal timer.
listener
- ActionListenerpublic void stopTimer()
public boolean isRunning()
public void startTimer()
public boolean isOnlyOnce()
public void setBorderStyle(int borderStyle)
borderStyle
- intpublic int getBorderStyle()
public void setAppearance(int appearance)
appearance
- intpublic int getAppearance()
public void setMousePointer(int mousePointer)
mousePointer
- intpublic int getMousePointer()
public void setTipStlyes(int style)
style
- intpublic int getTipStyle()
public void setKeyIntercept(int key)
key
- intpublic int getKeyIntercept()
public void setOleDropEnabled(boolean ole)
ole
- booleanpublic boolean isOleDropEnabled()
public void setShowMapTips(boolean tips)
tips
- booleanpublic boolean isShowMapTips()
public boolean esri_isEnabled()
public void esri_setEnabled(boolean rhs1)
public boolean isShowScrollbars()
public void setShowScrollbars(boolean rhs1)
rhs1
- booleanpublic int getBackColor()
public void setBackColor(int rhs1)
rhs1
- intpublic void setDocumentFilename(String filename)
filename
- Stringpublic String getDocumentFilename()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |