Java HtmlButton类代码示例(java中apidemo.util.htmlbutton类代码示例汇总)

本文整理汇总了Java中apidemo.util.HtmlButton的典型用法代码示例。如果您正苦于以下问题:Java HtmlButton类的具体用法?Java HtmlButton怎么用?Java HtmlButton使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Java HtmlButton类代码示例(java中apidemo.util.htmlbutton类代码示例汇总)

HtmlButton类属于apidemo.util包,在下文中一共展示了HtmlButton类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: OptionChainsPanel

import apidemo.util.HtmlButton; //导入依赖的package包/类
OptionChainsPanel() {
	m_symbol.setText( "IBM");
	m_secType.setSelectedItem( SecType.STK);
	m_exchange.setText( "SMART"); 
	m_currency.setText( "USD");
	m_optExch.setText( "SMART");
	
	HtmlButton button = new HtmlButton( "Go") {
		@Override protected void actionPerformed() {
			onAdd();
		}
	};
	
	VerticalPanel topPanel = new VerticalPanel();
	topPanel.add( "Symbol", m_symbol);
   	topPanel.add( "Currency", m_currency);
   	topPanel.add( "Underlying sec type", m_secType);
   	topPanel.add( "Underlying exchange", m_exchange, Box.createHorizontalStrut(20), button);
	topPanel.add( "Option exchange", m_optExch);
	topPanel.add( "Use snapshot data", m_snapshot);
	
	setLayout( new BorderLayout() );
	add( topPanel, BorderLayout.NORTH);
	add( m_tabbedPanel);
} 
开发者ID:qerio,项目名称:goib,代码行数:26,代码来源:OptionChainsPanel.java

示例2: AccountSummaryPanel

import apidemo.util.HtmlButton; //导入依赖的package包/类
AccountSummaryPanel() {
	HtmlButton sub = new HtmlButton( "Subscribe") {
		protected void actionPerformed() {
			subscribe();
		}
	};
	
	HtmlButton desub = new HtmlButton( "Desubscribe") {
		protected void actionPerformed() {
			desubscribe();
		}
	};
	
	JPanel buts = new VerticalPanel();
	buts.add( sub);
	buts.add( desub);
	
	JTable table = new Table( m_model);
	JScrollPane scroll = new JScrollPane( table);
	
	setLayout( new BorderLayout() );
	add( scroll);
	add( buts, BorderLayout.EAST);
} 
开发者ID:qerio,项目名称:goib,代码行数:25,代码来源:AccountSummaryPanel.java

示例3: PositionsMultiPanel

import apidemo.util.HtmlButton; //导入依赖的package包/类
PositionsMultiPanel() {
	
	HtmlButton requestPositionsMultiButton = new HtmlButton( "Request Positions Multi") {
		protected void actionPerformed() {
			onRequestPositionsMulti();
		}
	};
	
	VerticalPanel butPanel = new VerticalPanel();
	butPanel.add( requestPositionsMultiButton);
	setLayout( new BoxLayout( this, BoxLayout.X_AXIS) );
	m_requestPanel.enableLedgerAndNLV(false);
	add( m_requestPanel);
	add( Box.createHorizontalStrut(20));
	add( butPanel);
} 
开发者ID:qerio,项目名称:goib,代码行数:17,代码来源:AccountPositionsMultiPanel.java

示例4: AccountUpdatesMultiPanel

import apidemo.util.HtmlButton; //导入依赖的package包/类
AccountUpdatesMultiPanel() {
	
	HtmlButton requestAccountUpdatesMultiButton = new HtmlButton( "Request Account Updates Multi") {
		protected void actionPerformed() {
			onRequestAccountUpdatesMulti();
		}
	};
	
	VerticalPanel butPanel = new VerticalPanel();
	butPanel.add( requestAccountUpdatesMultiButton);
	setLayout( new BoxLayout( this, BoxLayout.X_AXIS) );
	m_requestPanel.enableLedgerAndNLV(true);
	add( m_requestPanel);
	add( Box.createHorizontalStrut(20));
	add( butPanel);
} 
开发者ID:qerio,项目名称:goib,代码行数:17,代码来源:AccountPositionsMultiPanel.java

示例5: DnPanel

import apidemo.util.HtmlButton; //导入依赖的package包/类
DnPanel() {
	HtmlButton but = new HtmlButton( "Set") {
		@Override protected void actionPerformed() {
			onAdd();
		}
	};

	setBorder( new TitledBorder( "Delta-Neutral"));
   	add( "Symbol", m_symbol);
   	add( "Sec type", m_secType);
   	add( "Last trade date or contract month", m_lastTradeDateOrContractMonth);
   	add( "Exchange", m_exchange, but);
   	add( "Currency", m_currency);
	add( "Delta", m_delta);
	add( "Price", m_price);
} 
开发者ID:qerio,项目名称:goib,代码行数:17,代码来源:ComboPanel.java

示例6: TradesPanel

import apidemo.util.HtmlButton; //导入依赖的package包/类
TradesPanel() {
	JTable table = new JTable( m_model);
	JScrollPane scroll = new JScrollPane( table);
	scroll.setBorder( new TitledBorder( "Trade Log"));
	
	HtmlButton but = new HtmlButton( "Refresh") {
		@Override public void actionPerformed() {
			onRefresh();
		}
	};

	JPanel p = new JPanel( new FlowLayout( FlowLayout.RIGHT));
	p.add( but);
	
	setLayout( new BorderLayout() );
	add( scroll);
	add( p, BorderLayout.SOUTH);
} 
开发者ID:qerio,项目名称:goib,代码行数:19,代码来源:TradesPanel.java

示例7: TopResultsPanel

import apidemo.util.HtmlButton; //导入依赖的package包/类
TopResultsPanel() {
	m_typeCombo.removeItemAt( 0);

	JScrollPane scroll = new JScrollPane( m_tab);

	HtmlButton reqType = new HtmlButton( "Go") {
		@Override protected void actionPerformed() {
			onReqType();
		}
	};

	VerticalPanel butPanel = new VerticalPanel();
	butPanel.add( "Market data type", m_typeCombo, reqType);
	
	setLayout( new BorderLayout() );
	add( scroll);
	add( butPanel, BorderLayout.SOUTH);
} 
开发者ID:qerio,项目名称:goib,代码行数:19,代码来源:MarketDataPanel.java

示例8: DeepResultsPanel

import apidemo.util.HtmlButton; //导入依赖的package包/类
DeepResultsPanel() {
	HtmlButton desub = new HtmlButton( "Desubscribe") {
		public void actionPerformed() {
			onDesub();
		}
	};
	
	JTable buyTab = new JTable( m_buy);
	JTable sellTab = new JTable( m_sell);
	
	JScrollPane buyScroll = new JScrollPane( buyTab);
	JScrollPane sellScroll = new JScrollPane( sellTab);
	
	JPanel mid = new JPanel( new GridLayout( 1, 2) );
	mid.add( buyScroll);
	mid.add( sellScroll);
	
	setLayout( new BorderLayout() );
	add( mid);
	add( desub, BorderLayout.SOUTH);
} 
开发者ID:qerio,项目名称:goib,代码行数:22,代码来源:MarketDataPanel.java

示例9: RealtimeRequestPanel

import apidemo.util.HtmlButton; //导入依赖的package包/类
RealtimeRequestPanel() { 		
	HtmlButton button = new HtmlButton( "Request real-time bars") {
		@Override protected void actionPerformed() {
			onRealTime();
		}
	};
	
   	VerticalPanel paramPanel = new VerticalPanel();
	paramPanel.add( "What to show", m_whatToShow);
	paramPanel.add( "RTH only", m_rthOnly);
	
	VerticalPanel butPanel = new VerticalPanel();
	butPanel.add( button);
	
	JPanel rightPanel = new StackPanel();
	rightPanel.add( paramPanel);
	rightPanel.add( Box.createVerticalStrut( 20));
	rightPanel.add( butPanel);
	
	setLayout( new BoxLayout( this, BoxLayout.X_AXIS) );
	add( m_contractPanel);
	add( Box.createHorizontalStrut(20) );
	add( rightPanel);
} 
开发者ID:qerio,项目名称:goib,代码行数:25,代码来源:MarketDataPanel.java

示例10: ScannerRequestPanel

import apidemo.util.HtmlButton; //导入依赖的package包/类
ScannerRequestPanel() {
	HtmlButton go = new HtmlButton( "Go") {
		@Override protected void actionPerformed() {
			onGo();
		}
	};
	
	VerticalPanel paramsPanel = new VerticalPanel();
	paramsPanel.add( "Scan code", m_scanCode);
	paramsPanel.add( "Instrument", m_instrument);
	paramsPanel.add( "Location", m_location, Box.createHorizontalStrut(10), go);
	paramsPanel.add( "Stock type", m_stockType);
	paramsPanel.add( "Num rows", m_numRows);
	
	setLayout( new BorderLayout() );
	add( paramsPanel, BorderLayout.NORTH);
} 
开发者ID:qerio,项目名称:goib,代码行数:18,代码来源:MarketDataPanel.java

示例11: PositionsPanel

import apidemo.util.HtmlButton; //导入依赖的package包/类
PositionsPanel() {
	HtmlButton sub = new HtmlButton( "Subscribe") {
		protected void actionPerformed() {
			subscribe();
		}
	};
	
	HtmlButton desub = new HtmlButton( "Desubscribe") {
		protected void actionPerformed() {
			desubscribe();
		}
	};

	JPanel buts = new VerticalPanel();
	buts.add( sub);
	buts.add( desub);

	JTable table = new Table( m_model, 2);
	JScrollPane scroll = new JScrollPane( table);
	
	setLayout( new BorderLayout() );
	add( scroll);
	add( buts, BorderLayout.EAST);
} 
开发者ID:qerio,项目名称:goib,代码行数:25,代码来源:PositionsPanel.java

示例12: MarketValueSummaryPanel

import apidemo.util.HtmlButton; //导入依赖的package包/类
MarketValueSummaryPanel() {
	HtmlButton sub = new HtmlButton( "Subscribe") {
		protected void actionPerformed() {
			subscribe();
		}
	};
	
	HtmlButton desub = new HtmlButton( "Desubscribe") {
		protected void actionPerformed() {
			desubscribe();
		}
	};
	
	JPanel buts = new VerticalPanel();
	buts.add( sub);
	buts.add( desub);

	JTable table = new Table( m_model, 2);
	JScrollPane scroll = new JScrollPane( table);
	
	setLayout( new BorderLayout() );
	add( scroll);
	add( buts, BorderLayout.EAST);
} 
开发者ID:qerio,项目名称:goib,代码行数:25,代码来源:MarketValueSummaryPanel.java

示例13: GroupsPanel

import apidemo.util.HtmlButton; //导入依赖的package包/类
GroupsPanel() {
	JScrollPane groupScroll = new JScrollPane( m_groupTable);
	groupScroll.setBorder( new TitledBorder( "Groups"));
	
	HtmlButton create = new HtmlButton( "Create Group") {
		@Override protected void actionPerformed() {
			onCreateGroup();
		}
	};

	HtmlButton update = new HtmlButton( "Update") {
		@Override protected void actionPerformed() {
			onTransmit();
		}
	};
	
	JPanel buts = new VerticalPanel();
	buts.add( create);
	buts.add( update);

	setLayout( new BorderLayout() );
	add( groupScroll);
	add( buts, BorderLayout.EAST);
} 
开发者ID:qerio,项目名称:goib,代码行数:25,代码来源:AdvisorPanel.java

示例14: ProfilesPanel

import apidemo.util.HtmlButton; //导入依赖的package包/类
ProfilesPanel() {
	JScrollPane profileScroll = new JScrollPane( m_profileTable);
	profileScroll.setBorder( new TitledBorder( "Profiles"));

	HtmlButton create = new HtmlButton( "Create Profile") {
		@Override protected void actionPerformed() {
			onCreateProfile();
		}
	};

	HtmlButton update = new HtmlButton( "Update") {
		@Override protected void actionPerformed() {
			onTransmit();
		}
	};

	JPanel buts = new VerticalPanel();
	buts.add( create);
	buts.add( update);

	setLayout( new BorderLayout() );
	add( profileScroll);
	add( buts, BorderLayout.EAST);
} 
开发者ID:qerio,项目名称:goib,代码行数:25,代码来源:AdvisorPanel.java

示例15: FundaRequestPanel

import apidemo.util.HtmlButton; //导入依赖的package包/类
FundaRequestPanel() {
	HtmlButton but = new HtmlButton( "Query") {
		@Override protected void actionPerformed() {
			onQuery();
		}
	};
	
	VerticalPanel rightPanel = new VerticalPanel();
	rightPanel.add( "Report type", m_type);
	
	setLayout( new BoxLayout( this, BoxLayout.X_AXIS));
	add( m_contractPanel);
	add( Box.createHorizontalStrut(20));
	add( rightPanel);
	add( Box.createHorizontalStrut(10));
	add( but);
} 
开发者ID:qerio,项目名称:goib,代码行数:18,代码来源:ContractInfoPanel.java

本文标签属性:

示例:示例英文

代码:代码转换器

java:java模拟器

HtmlButton:htmlbutton属性

上一篇:C# RecordType类代码示例(c#recordtype典型用法代码示例汇总)
下一篇:耕地是什么意思(耕地名词解释)(耕地名词解释)

为您推荐