📄 app.java
字号:
package HAB.object;
import java.awt.*;
import java.beans.*;
import HAB.HcBean.HpException;
import HAB.HcBean.HalcyonAppletBeanInterface;
public class APP implements HAB.HcBean.HalcyonAppletBeanInterface , java.io.Serializable
{
String Comments="" ; //1
String CompanyName="" ;//2
String EXEName ="Project1" ;//auto3
String FileDescription ="" ;//4
String HelpFile ="" ;//5
int HInstance=0 ;//6
String LegalCopyright="" ;//7
String LegalTrademarks ="" ;//8
short Major =1 ;//0~9999//9
short Minor =0 ;//0~9999 //10
String OLERequestPendingMsgText="" ; //11
String OLERequestPendingMsgTitle="" ; //12
int OLERequestPendingTimeout=0 ;//13
String OLEServerBusyMsgText="" ;//14
String OLEServerBusyMsgTitle="" ;//15
boolean OLEServerBusyRaiseError=false ;//16
int OLEServerBusyTimeout=0 ;//17
String Path ="" ; // 18
boolean PrevInstance =false ;//19
String ProductName ="" ;//20
short Revision =0 ;//0~9999 //21
short StartMode =0; //vbSModeStandalon ; //22
boolean TaskVisible=true; //23
String Title ="" ;//24
String title="";
public APP()
{
}
/**********************
// set | get property
// total 24
**********************/
//1 readonly
public void setComments(String s) throws HpException
{
if( !Beans.isDesignTime())
throw new HpException(450,"Wrong number of arguments or invalid property assignment"); Comments = s;
}
public String getComments() throws HpException
{
return Comments;
}
//2 readonly
public void setCompanyName(String s) throws HpException
{
if( !Beans.isDesignTime())
throw new HpException(450,"Wrong number of arguments or invalid property assignment");
CompanyName = s;
}
public String getCompanyName() throws HpException
{
return CompanyName;
}
//3 readonly
public void setEXEName(String s) throws HpException
{
if( !Beans.isDesignTime())
throw new HpException(450,"Wrong number of arguments or invalid property assignment");
EXEName = s;
}
public String getEXEName() throws HpException
{
return EXEName;
}
//4 readonly
public void setFileDescription(String s) throws HpException
{
if( !Beans.isDesignTime())
throw new HpException(450,"Wrong number of arguments or invalid property assignment");
FileDescription = s;
}
public String getFileDescription() throws HpException
{
return FileDescription;
}
//5
public void setHelpFile(String str) throws HpException
{
HelpFile=str;
}
public String getHelpFile() throws HpException
{
return HelpFile;
}
//6 readonly
public void setHInstance(int i) throws HpException
{
throw new HpException(450,"Wrong number of arguments or invalid property assignment");
}
public int getHInstance() throws HpException
{
return HInstance;
}
//7 readonly
public void setLegalCopyright(String s) throws HpException
{
if( !Beans.isDesignTime())
throw new HpException(450,"Wrong number of arguments or invalid property assignment");
LegalCopyright = s;
}
public String getLegalCopyright() throws HpException
{
return LegalCopyright ;
}
//8 readonly
public void setLegalTrademarks(String s) throws HpException
{
if( !Beans.isDesignTime())
throw new HpException(450,"Wrong number of arguments or invalid property assignment");
LegalTrademarks = s;
}
public String getLegalTrademarks() throws HpException
{
return LegalTrademarks ;
}
//9 readonly runtime
public void setMajor(short sh) throws HpException
{
if( !Beans.isDesignTime())
throw new HpException(450,"Wrong number of arguments or invalid property assignment");
Major = sh;
}
public short getMajor() throws HpException
{
return Major ;
}
//10 readonly
public void setMinor(short i) throws HpException
{
if( !Beans.isDesignTime())
throw new HpException(450,"Wrong number of arguments or invalid property assignment");
Minor = i;
}
public short getMinor() throws HpException
{
return Minor ;
}
//11 OLERequestPendingMsgText
public void setOLERequestPendingMsgText(String str) throws HpException
{
OLERequestPendingMsgText = str;
}
public String getOLERequestPendingMsgText() throws HpException
{
throw new HpException(438,"Object doesn't support the property or method");
//return OLERequestPendingMsgText;
}
//12 String OLERequestPendingMsgTitle
public void setOLERequestPendingMsgTitle( String str) throws HpException
{
OLERequestPendingMsgTitle = str;
}
public String getOLERequestPendingMsgTitle() throws HpException
{
throw new HpException(438,"Object doesn't support the property or method");
}
//13 int OLERequestPendingTimeout
public void setOLERequestPendingTimeout( int timeout) throws HpException
{
OLERequestPendingTimeout = timeout;
}
public int getOLERequestPendingTimeout() throws HpException
{
throw new HpException(438,"Object doesn't support the property or method");
}
// String OLEServerBusyMsgText ;//14
public void setOLEServerBusyMsgText(String str) throws HpException
{
OLEServerBusyMsgText = str;
}
public String getOLEServerBusyMsgText() throws HpException
{
throw new HpException(438,"Object doesn't support the property or method");
// return OLEServerBusyMsgText;
}
//String OLEServerBusyMsgTitle ;//15
public void setOLEServerBusyMsgTitle(String str) throws HpException
{
OLEServerBusyMsgTitle = str;
}
public String getOLEServerBusyMsgTitle() throws HpException
{
throw new HpException(438,"Object doesn't support the property or method");
// return OLEServerBusyMsgTitle;
}
//boolean OLEServerBusyRaiseError=false ;//16
public void setOLEServerBusyRaiseError(boolean raiseErr) throws HpException
{
OLEServerBusyRaiseError = raiseErr;
}
public boolean getOLEServerBusyRaiseError() throws HpException
{
throw new HpException(438,"Object doesn't support the property or method");
// return OLEServerBusyRaiseError;
}
//int OLEServerBusyTimeout ;//17
public void setOLEServerBusyTimeout(int busytimeout) throws HpException
{
OLEServerBusyTimeout = busytimeout;
}
public int getOLEServerBusyTimeout() throws HpException
{
throw new HpException(438,"Object doesn't support the property or method");
// return OLEServerBusyTimeout;
}
//String Path 18 readonly for app object
public void setPath(String s) throws HpException
{
if( !Beans.isDesignTime())
throw new HpException(450,"Wrong number of arguments or invalid property assignment");
Path = s;
}
public String getPath() throws HpException
{
if(Path.equals(""))
Path=System.getProperty("user.dir");
return Path;
}
//boolean PrevInstance 19 readonly
public void setPrevInstance(boolean b) throws HpException
{
if( !Beans.isDesignTime())
throw new HpException(450,"Wrong number of arguments or invalid property assignment"); PrevInstance = b;
}
public boolean getPrevInstance() throws HpException
{
return PrevInstance;
}
//String ProductName ="" ;//20
public void setProductName(String s) throws HpException
{
if( !Beans.isDesignTime())
throw new HpException(450,"Wrong number of arguments or invalid property assignment"); ProductName = s;
}
public String getProductName() throws HpException
{
return ProductName;
}
//short Revision //21 readonly
public void setRevision(short i) throws HpException
{
if( !Beans.isDesignTime())
throw new HpException(450,"Wrong number of arguments or invalid property assignment"); Revision = i;
}
public short getRevision() throws HpException
{
return Revision ;
}
//short StartMode =0; //vbSModeStandalon ; //22
public void setStartMode(short i) throws HpException
{
if( !Beans.isDesignTime())
throw new HpException(450,"Wrong number of arguments or invalid property assignment"); StartMode = i;
}
public short getStartMode() throws HpException
{
return StartMode;
}
//boolean TaskVisible =false; //23
public void setTaskVisible(boolean visible) throws HpException
{
TaskVisible = visible;
}
public boolean getTaskVisible() throws HpException
{
return TaskVisible;
}
//String Title ;//24
public void setTitle(String str) throws HpException
{
Title = str;
}
public String getTitle()
{
int length=Title.length();
if(length>40)
Title=Title.substring(0,40);
return Title;
}
private static APPBeanInfo bi = null;
public java.beans.BeanInfo getBeanInfo()
{
if (bi == null)
{
bi = new APPBeanInfo();
}
return bi;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -