本文整理汇总了Java中org.hy.common.xml.XJava.getObject方法的典型用法代码示例。如果您正苦于以下问题:Java XJava.getObject方法的具体用法?Java XJava.getObject怎么用?Java XJava.getObject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.hy.common.xml.XJava
的用法示例。
在下文中一共展示了XJava.getObject方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: test_Sheets
import org.hy.common.xml.XJava; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
@Test
public void test_Sheets() throws Exception
{
List<JUBase<?>> v_Junits = (List<JUBase<?>>)XJava.getObject("Junits");
List<RTemplate> v_ReportTemplates = (List<RTemplate>)XJava.getObject("ReportTemplates");
RWorkbook v_RWorkbook = null;
RTemplate v_RTemplate = null;
for (int i_Index=0; i_Index<v_ReportTemplates.size(); i_Index++)
{
v_RTemplate = v_ReportTemplates.get(i_Index);
v_RWorkbook = ReportHelp.toExcel(v_RWorkbook ,v_Junits.get(i_Index).getDatas(10) ,v_RTemplate);
}
ExcelHelp.save(v_RWorkbook.getWorkbook() ,"/Users/hy/Downloads/Sheets");
}
示例2: itemStateChanged
import org.hy.common.xml.XJava; //导入方法依赖的package包/类
@Override
public void itemStateChanged(ItemEvent e)
{
JComboBox v_FamilyNameObj = (JComboBox)e.getSource();
JComboBox v_ColumnNameObj = null;
if ( v_FamilyNameObj.getName().equals("Edit_FamilyName") )
{
v_ColumnNameObj = (JComboBox)XJava.getObject("Edit_ColumnName");
}
else
{
v_ColumnNameObj = (JComboBox)XJava.getObject("ColumnName");
((JComponent)XJava.getObject("xbSubmitFilter")).setEnabled(false);
}
this.getAppFrame().initColumnNames(e.getItem().toString() ,v_ColumnNameObj);
}
示例3: onClick
import org.hy.common.xml.XJava; //导入方法依赖的package包/类
@Override
public void onClick(ActionEvent i_Event)
{
if ( JavaHelp.isNull(this.getAppFrame().getTableName()) )
{
this.getAppFrame().showHintInfo("请先选择要清空的表" ,Color.BLUE);
return;
}
if ( this.getAppFrame().getSelectColCount() <= 1 )
{
this.getAppFrame().showHintInfo("请选择查询结果列表中的多行数据" ,Color.BLUE);
return;
}
JTable v_JTable = (JTable)XJava.getObject("xtDataList");
int [] v_RowIndexArr = v_JTable.getSelectedRows();
String v_CMDPuts = this.writeContents(v_JTable ,v_RowIndexArr);
((JTextArea)XJava.getObject("xtPutsInfo")).setText(v_CMDPuts);
super.onClick(i_Event);
}
示例4: test_005_QueryEntryTrees
import org.hy.common.xml.XJava; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
@Test
public void test_005_QueryEntryTrees()
{
LDAP v_LDAP = (LDAP)XJava.getObject("LDAP");
List<User> v_Entrys = (List<User>)v_LDAP.queryEntryTrees("dc=maxcrc,dc=com");
if ( !Help.isNull(v_Entrys) )
{
System.out.println(Date.getNowTime().getFullMilli() + " 查询成功.");
Help.print(v_Entrys);
}
else
{
System.out.println(Date.getNowTime().getFullMilli() + " 查询异常.");
}
}
示例5: testSendMail
import org.hy.common.xml.XJava; //导入方法依赖的package包/类
@Test
@SuppressWarnings("unchecked")
public void testSendMail()
{
MailSendInfo v_SendInfo = new MailSendInfo();
v_SendInfo.setEmail("[email protected]");
v_SendInfo.setSubject(Date.getNowTime().getFull());
v_SendInfo.setContent("T");
CycleList<MailOwnerInfo> v_MailOwners = (CycleList<MailOwnerInfo>)XJava.getObject("CycleMails");
for (MailOwnerInfo v_MailOwner : v_MailOwners)
{
System.out.println(v_MailOwner.getEmail());
SimpleMail.sendHtmlMail(v_MailOwner ,v_SendInfo);
}
}
示例6: test_003
import org.hy.common.xml.XJava; //导入方法依赖的package包/类
@Test
public void test_003() throws Exception
{
for (int i=0; i<=10; i++)
{
this.test_002();
}
Berkeley v_Berkeley = (Berkeley)XJava.getObject("Berkeley");
// 当你完成数据库操作后一定要关闭数据库环境
v_Berkeley.close();
}
示例7: initListModel
import org.hy.common.xml.XJava; //导入方法依赖的package包/类
/**
* 初始化数据库表列表的数据模型
*/
@SuppressWarnings("unchecked")
public void initListModel()
{
JList<String> v_Tables = (JList<String>)XJava.getObject("xlTables");
this.listModel = new DefaultListModel<String>();
v_Tables.setModel(this.listModel);
v_Tables.setBackground(this.getBackground());
}
示例8: showHintInfo
import org.hy.common.xml.XJava; //导入方法依赖的package包/类
/**
* 显示提示信息
*
* @param i_HintInfo
* @param i_Color
*/
public void showHintInfo(String i_HintInfo ,Color i_Color)
{
JLabel v_XLHintInfo = (JLabel)XJava.getObject("xlHintInfo");
v_XLHintInfo.setText(i_HintInfo);
v_XLHintInfo.setForeground(i_Color);
v_XLHintInfo.repaint();
}
示例9: test_002_Adds
import org.hy.common.xml.XJava; //导入方法依赖的package包/类
@Test
public void test_002_Adds()
{
LDAP v_LDAP = (LDAP)XJava.getObject("LDAP");
User v_User01 = new User();
User v_User02 = new User();
List<Object> v_Values = new ArrayList<Object>();
v_User01.setId( "ou=Batch01,dc=maxcrc,dc=com");
v_User01.setName( "Batch01");
v_User01.setPassword("1234567890");
v_User02.setId( "ou=Batch02,dc=maxcrc,dc=com");
v_User02.setName( "Batch02");
v_User02.setPassword("0987654321");
v_Values.add(v_User01);
v_Values.add(v_User02);
boolean v_Ret = v_LDAP.addEntrys(v_Values);
if ( v_Ret )
{
System.out.println(Date.getNowTime().getFullMilli() + " 批量添加成功.");
}
else
{
System.out.println(Date.getNowTime().getFullMilli() + " 批量添加异常.");
}
}
示例10: valueChanged
import org.hy.common.xml.XJava; //导入方法依赖的package包/类
public void valueChanged(ListSelectionEvent e)
{
JTable v_JTable = (JTable)XJava.getObject("xtDataList");
// 如果事件非快速连续事件之一
if ( !e.getValueIsAdjusting() )
{
int [] v_RowIndexArr = v_JTable.getSelectedRows();
if ( v_RowIndexArr.length == 1 )
{
((JTextComponent)XJava.getObject("Edit_RowKey")) .setText( v_JTable.getValueAt(v_RowIndexArr[0] ,1).toString());
((JComboBox) XJava.getObject("Edit_ColumnName")) .setSelectedItem(v_JTable.getValueAt(v_RowIndexArr[0] ,3).toString());
((JTextComponent)XJava.getObject("Edit_ColumnValue")).setText( v_JTable.getValueAt(v_RowIndexArr[0] ,4).toString());
((JButton) XJava.getObject("xbCopy")) .setEnabled(false);
// 设置列族名下拉列表框
String v_FamilyName = v_JTable.getValueAt(v_RowIndexArr[0] ,2).toString();
JComboBox v_FamilyNameObj = (JComboBox)XJava.getObject("Edit_FamilyName");
for (int i=0; i<v_FamilyNameObj.getItemCount(); i++)
{
if ( v_FamilyNameObj.getItemAt(i).toString().equals(v_FamilyName) )
{
v_FamilyNameObj.setSelectedIndex(i);
return;
}
}
}
else
{
// 多行选择的情况
((JTextComponent)XJava.getObject("Edit_RowKey")) .setText("");
((JComboBox) XJava.getObject("Edit_FamilyName")) .setSelectedIndex(0);
((JComboBox) XJava.getObject("Edit_ColumnName")) .setSelectedIndex(0);
((JTextComponent)XJava.getObject("Edit_ColumnValue")).setText("");
((JButton) XJava.getObject("xbCopy")) .setEnabled(this.getAppFrame().getSelectColCount() >= 2);
}
}
}
示例11: makeLargeTrading
import org.hy.common.xml.XJava; //导入方法依赖的package包/类
/**
* 补充当天大单交易数据
*
* @author ZhengWei(HY)
* @createDate 2016-08-16
* @version v1.0
*/
@Test
public void makeLargeTrading()
{
StockConfigDAO v_StockConfigDAO = (StockConfigDAO) XJava.getObject("StockConfigDAO");
XHttpLargeTrading v_XHttpLargeTrading = (XHttpLargeTrading) XJava.getObject("XHttpLargeTrading");
LargeTradingService v_LargeTradingService = (LargeTradingService)XJava.getObject("LargeTradingService");
System.out.print("-- 开始补充当天大单交易数据...\n");
List<LargeTrading> v_LargeTradings = null;
List<LargeTrading> v_LargeTradingsSum = new ArrayList<LargeTrading>();
for (Entry<String ,StockConfig> v_StockConfig : v_StockConfigDAO.queryStockConfigMaps().entrySet())
{
System.out.print("-- 补充[" + v_StockConfig.getValue().getStockCode() + v_StockConfig.getValue().getStockName() + "]当天大单交易数据...\n");
try
{
v_LargeTradings = v_XHttpLargeTrading.parseHttpResult(v_StockConfig.getValue() ,v_XHttpLargeTrading.request(v_StockConfig.getValue().getStockCode()));
if ( !Help.isNull(v_LargeTradings) )
{
v_LargeTradings = v_LargeTradingService.addLargeTradings(v_StockConfig.getValue().getStockCode() ,v_LargeTradings);
}
}
catch (Exception exce)
{
exce.printStackTrace();
}
if ( !Help.isNull(v_LargeTradings) )
{
v_LargeTradingsSum.addAll(v_LargeTradings);
}
}
}
示例12: request
import org.hy.common.xml.XJava; //导入方法依赖的package包/类
@Test
public void request()
{
XHttpLargeTrading v_XHttp = (XHttpLargeTrading)XJava.getObject("XHttpLargeTrading");
System.out.println(v_XHttp.request("sz000002"));
}
示例13: test_JU_ReadVerticalGrade
import org.hy.common.xml.XJava; //导入方法依赖的package包/类
@Test
public void test_JU_ReadVerticalGrade()
{
RTemplate v_RTemplate = (RTemplate)XJava.getObject("ReadVerticalGrade");
List<?> v_Datas = ReportHelp.toJava(v_RTemplate ,JU_ReadVerticalGrade.class.getResource("JU_ReadVerticalGrade_Datas.xlsx").toString());
Help.print(v_Datas);
}
示例14: getDialog
import org.hy.common.xml.XJava; //导入方法依赖的package包/类
public JDialog getDialog()
{
if ( !JavaHelp.isNull(this.dialogName) )
{
return (JDialog)XJava.getObject(this.dialogName);
}
else
{
throw new NullPointerException("Dialog name is null.");
}
}
示例15: request
import org.hy.common.xml.XJava; //导入方法依赖的package包/类
public String request(String i_StockCodes ,int i_Year ,String i_DataType)
{
XHttp v_XHttp = (XHttp)XJava.getObject("HTTP_StockHistory");
Map<String ,String> v_Params = new Hashtable<String ,String>();
v_Params.put("param" ,i_StockCodes + ",day," + i_Year + "-01-01," + i_Year + "-12-31,320," + i_DataType);
Return<?> v_Response = v_XHttp.request(v_Params);
return v_Response.paramStr;
}