當前位置: 首頁>>代碼示例>>Java>>正文


Java VerticalPanel類代碼示例

本文整理匯總了Java中apidemo.util.VerticalPanel的典型用法代碼示例。如果您正苦於以下問題:Java VerticalPanel類的具體用法?Java VerticalPanel怎麽用?Java VerticalPanel使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


VerticalPanel類屬於apidemo.util包,在下文中一共展示了VerticalPanel類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: OptionChainsPanel

import apidemo.util.VerticalPanel; //導入依賴的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: ChainPanel

import apidemo.util.VerticalPanel; //導入依賴的package包/類
ChainPanel() {
	JScrollPane scrollPuts = new JScrollPane( m_putsTable);
	scrollPuts.setBorder( new TitledBorder( "Puts"));

	JScrollPane scrollCalls = new JScrollPane( m_callsTable);
	scrollCalls.setBorder( new TitledBorder( "Calls"));

	VerticalPanel underPanel = new VerticalPanel();
          underPanel.add( "Underlying price", m_labUnderPrice);
          
	JPanel mainPanel = new JPanel();
	mainPanel.setLayout( new BoxLayout( mainPanel, BoxLayout.X_AXIS));
	mainPanel.add( scrollCalls);
          mainPanel.add( scrollPuts);
	
	setLayout( new BorderLayout() );
	add( underPanel, BorderLayout.NORTH);
	add( mainPanel);
	
	m_timer.start();
	
	ApiDemo.INSTANCE.controller().reqTopMktData( m_underContract, "", false, m_stockListener);
}
 
開發者ID:qerio,項目名稱:goib,代碼行數:24,代碼來源:OptionChainsPanel.java

示例3: AccountSummaryPanel

import apidemo.util.VerticalPanel; //導入依賴的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

示例4: PositionsMultiPanel

import apidemo.util.VerticalPanel; //導入依賴的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

示例5: AccountUpdatesMultiPanel

import apidemo.util.VerticalPanel; //導入依賴的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

示例6: ComboContractPanel

import apidemo.util.VerticalPanel; //導入依賴的package包/類
ComboContractPanel() {
	super( m_contract);
	removeAll();

	VerticalPanel p1 = new VerticalPanel();
	p1.setAlignmentY(0);
	p1.add( "Action", m_action);
	p1.add( "Ratio", m_ratio);
	p1.add( "Symbol", m_symbol);
	p1.add( "Sec type", m_secType);
	p1.add( "Last trade date", m_lastTradeDateOrContractMonth);
	p1.add( "Strike", m_strike);

	VerticalPanel p2 = new VerticalPanel();
	p2.setAlignmentY(0);
	p2.add( "Put/call", m_right);
	p2.add( "Multiplier", m_multiplier);
	p2.add( "Exchange", m_exchange);
	p2.add( "Comp. Exch.", m_compExch);
	p2.add( "Currency", m_currency);
	p2.add( "Local symbol", m_localSymbol);

	setLayout( new BoxLayout( this, BoxLayout.X_AXIS) );
	add( p1);
	add( p2);
}
 
開發者ID:qerio,項目名稱:goib,代碼行數:27,代碼來源:ComboPanel.java

示例7: TopResultsPanel

import apidemo.util.VerticalPanel; //導入依賴的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: RealtimeRequestPanel

import apidemo.util.VerticalPanel; //導入依賴的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

示例9: ScannerRequestPanel

import apidemo.util.VerticalPanel; //導入依賴的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

示例10: PositionsPanel

import apidemo.util.VerticalPanel; //導入依賴的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

示例11: MarketValueSummaryPanel

import apidemo.util.VerticalPanel; //導入依賴的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

示例12: GroupsPanel

import apidemo.util.VerticalPanel; //導入依賴的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

示例13: ProfilesPanel

import apidemo.util.VerticalPanel; //導入依賴的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

示例14: FundaRequestPanel

import apidemo.util.VerticalPanel; //導入依賴的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

示例15: ComboContractPanel

import apidemo.util.VerticalPanel; //導入依賴的package包/類
ComboContractPanel() {
	super( m_contract);
	removeAll();

	VerticalPanel p1 = new VerticalPanel();
	p1.setAlignmentY(0);
	p1.add( "Action", m_action);
	p1.add( "Ratio", m_ratio);
	p1.add( "Symbol", m_symbol);
	p1.add( "Sec type", m_secType);
	p1.add( "Expiry", m_expiry);
	p1.add( "Strike", m_strike);

	VerticalPanel p2 = new VerticalPanel();
	p2.setAlignmentY(0);
	p2.add( "Put/call", m_right);
	p2.add( "Multiplier", m_multiplier);
	p2.add( "Exchange", m_exchange);
	p2.add( "Currency", m_currency);
	p2.add( "Local symbol", m_localSymbol);

	setLayout( new BoxLayout( this, BoxLayout.X_AXIS) );
	add( p1);
	add( p2);
}
 
開發者ID:softwarespartan,項目名稱:TWS,代碼行數:26,代碼來源:ComboPanel.java


注:本文中的apidemo.util.VerticalPanel類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。