本文整理了Java中org.jbundle.thin.base.util.Application.getResources()
方法的一些代码示例,展示了Application.getResources()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Application.getResources()
方法的具体详情如下:
包路径:org.jbundle.thin.base.util.Application
类名称:Application
方法名:getResources
暂无
代码示例来源:origin: com.tourgeek.thin.app/com.tourgeek.thin.app.booking
panelLeft.setAlignmentY(0.0f);
applet.getApplication().getResources(applet.getApplication().getProperty(Params.RESOURCE), true);
strDescription = applet.getString(SearchConstants.SEARCH + "Text");
panelLeft.add(new JLabel(strDescription));
代码示例来源:origin: org.jbundle.base/org.jbundle.base
ResourceBundle resources = super.getResources(strResourceName, bReturnKeyOnMissing);
if (resources != null)
if (!(resources instanceof Resources))
代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.acctpay.screen
/**
* A record with this datasource handle changed, notify any behaviors that are checking.
* NOTE: Be very careful as this code is running in an independent thread
* (synchronize to the task before calling record calls).
* NOTE: For now, you are only notified of the main record changes.
* @param message The message to handle.
* @return The error code.
*/
public int handleMessage(BaseMessage message)
{
if (message != null)
if (message.getMessageHeader().getRegistryIDMatch() != null) // My private message
if (message.getMessageHeader().getRegistryIDMatch().equals(m_intRegistryID)) // My private message
{
Application app = (Application)this.getTask().getApplication();
String strMessage = app.getResources(ResourceConstants.DEFAULT_RESOURCE, true).getString("Remote action completed");
this.getTask().setStatusText(strMessage, Constants.INFORMATION);
message.consume();
}
return super.handleMessage(message);
}
代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.acctpay.screen
/**
* A record with this datasource handle changed, notify any behaviors that are checking.
* NOTE: Be very careful as this code is running in an independent thread
* (synchronize to the task before calling record calls).
* NOTE: For now, you are only notified of the main record changes.
* @param message The message to handle.
* @return The error code.
*/
public int handleMessage(BaseMessage message)
{
if (message != null)
if (message.getMessageHeader().getRegistryIDMatch() != null) // My private message
if (message.getMessageHeader().getRegistryIDMatch().equals(m_intRegistryID)) // My private message
{
Application app = (Application)this.getTask().getApplication();
String strMessage = app.getResources(ResourceConstants.DEFAULT_RESOURCE, true).getString("Remote action completed");
this.getTask().setStatusText(strMessage, Constants.INFORMATION);
message.consume();
}
return super.handleMessage(message);
}
代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.acctpay.screen
app.getMessageManager().sendMessage(message);
String strMessage = app.getResources(ResourceConstants.DEFAULT_RESOURCE, true).getString("Remote action queued");
this.getTask().setStatusText(strMessage, Constants.WAIT);
代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.acctpay.screen
app.getMessageManager().sendMessage(message);
String strMessage = app.getResources(ResourceConstants.DEFAULT_RESOURCE, true).getString("Remote action queued");
this.getTask().setStatusText(strMessage, Constants.WAIT);
代码示例来源:origin: com.tourgeek.thin.app/com.tourgeek.thin.app.booking
/**
* The init() method is called by the AWT when an applet is first loaded or
* reloaded. Override this method to perform whatever initialization your
* applet needs, such as initializing data structures, loading images or
* fonts, creating frame windows, setting the layout manager, or adding UI
* components.
*/
public void init(Object parent, RemoteSession remoteSession)
{
super.init(parent, null);
m_remoteSession = remoteSession;
if (m_remoteSession == null)
m_remoteSession = this.createRemoteSession((JBaseScreen)this.getTargetScreen(JBaseScreen.class));
this.setOpaque(false);
this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
TourGeekScreen screenMain = (TourGeekScreen)this.getTargetScreen(TourGeekScreen.class);
if (screenMain != null)
{
this.addPropertyChangeListener(screenMain.getParams());
screenMain.getParams().addPropertyChangeListener(this);
}
BaseApplet applet = this.getBaseApplet();
if (applet == null)
applet = BaseApplet.getSharedInstance();
applet.getApplication().getResources(applet.getApplication().getProperty(Params.RESOURCE), true); // Make sure I'm using default resources
}
/**
代码示例来源:origin: com.tourgeek.thin.app/com.tourgeek.thin.app.booking
if (applet == null)
applet = BaseApplet.getSharedInstance();
applet.getApplication().getResources(applet.getApplication().getProperty(Params.RESOURCE), true); // Make sure I'm using default resources
代码示例来源:origin: com.tourgeek.thin.app/com.tourgeek.thin.app.booking
if (applet == null)
applet = BaseApplet.getSharedInstance();
applet.getApplication().getResources(applet.getApplication().getProperty(Params.RESOURCE), true); // Make sure I'm using default resources
内容来源于网络,如有侵权,请联系作者删除!