91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 439KB
    文件類型: .zip
    金幣: 2
    下載: 1 次
    發(fā)布日期: 2021-06-18
  • 語(yǔ)言: Java
  • 標(biāo)簽: java??

資源簡(jiǎn)介

基于Java和JavaUI界面代碼的投票管理系統(tǒng)基于Java和JavaUI界面代碼的投票管理系統(tǒng)

資源截圖

代碼片段和文件信息

/*******************************************************************************
?*?Copyright?(c)?2011?Google?Inc.
?*?All?rights?reserved.?This?program?and?the?accompanying?materials
?*?are?made?available?under?the?terms?of?the?Eclipse?Public?License?v1.0
?*?which?accompanies?this?distribution?and?is?available?at
?*?http://www.eclipse.org/legal/epl-v10.html
?*
?*?Contributors:
?*????Google?Inc.?-?initial?API?and?implementation
?*******************************************************************************/
package?org.eclipse.wb.swing;

import?java.awt.Component;
import?java.awt.Container;
import?java.awt.FocusTraversalPolicy;

/**
?*?Cyclic?focus?traversal?policy?based?on?array?of?components.
?*?


?*?This?class?may?be?freely?distributed?as?part?of?any?application?or?plugin.
?*?
?*?@author?scheglov_ke
?*/
public?class?FocusTraversalOnArray?extends?FocusTraversalPolicy?{
private?final?Component?m_Components[];
////////////////////////////////////////////////////////////////////////////
//
//?Constructor
//
////////////////////////////////////////////////////////////////////////////
public?FocusTraversalOnArray(Component?components[])?{
m_Components?=?components;
}
////////////////////////////////////////////////////////////////////////////
//
//?Utilities
//
////////////////////////////////////////////////////////////////////////////
private?int?indexCycle(int?index?int?delta)?{
int?size?=?m_Components.length;
int?next?=?(index?+?delta?+?size)?%?size;
return?next;
}
private?Component?cycle(Component?currentComponent?int?delta)?{
int?index?=?-1;
loop?:?for?(int?i?=?0;?i? Component?component?=?m_Components[i];
for?(Component?c?=?currentComponent;?c?!=?null;?c?=?c.getParent())?{
if?(component?==?c)?{
index?=?i;
break?loop;
}
}
}
//?try?to?find?enabled?component?in?“delta“?direction
int?initialIndex?=?index;
while?(true)?{
int?newIndex?=?indexCycle(index?delta);
if?(newIndex?==?initialIndex)?{
break;
}
index?=?newIndex;
//
Component?component?=?m_Components[newIndex];
if?(component.isEnabled()?&&?component.isVisible()?&&?component.isFocusable())?{
return?component;
}
}
//?not?found
return?currentComponent;
}
////////////////////////////////////////////////////////////////////////////
//
//?FocusTraversalPolicy
//
////////////////////////////////////////////////////////////////////////////
public?Component?getComponentAfter(Container?container?Component?component)?{
return?cycle(component?1);
}
public?Component?getComponentBefore(Container?container?Component?component)?{
return?cycle(component?-1);
}
public?Component?getFirstComponent(Container?container)?{
return?m_Components[0];
}
public?Component?getLastComponent(Container?container)?{
return?m_Components[m_Components.length?-?1];
}
public?Component?getDefaultComponent(Container?container)?{
return?getFirstComponent(contain


?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-07-30?15:35??yan0603\
?????文件?????????614??2017-06-05?08:10??yan0603\.classpath
?????文件?????????383??2017-06-03?15:09??yan0603\.project
?????目錄???????????0??2018-07-30?15:35??yan0603\.settings\
?????文件?????????598??2017-06-03?15:09??yan0603\.settings\org.eclipse.jdt.core.prefs
?????文件?????????932??2017-06-08?15:40??yan0603\BackgroundImage.jar
?????目錄???????????0??2018-07-30?15:35??yan0603\bin\
?????目錄???????????0??2018-07-30?15:35??yan0603\bin\org\
?????目錄???????????0??2018-07-30?15:35??yan0603\bin\org\eclipse\
?????目錄???????????0??2018-07-30?15:35??yan0603\bin\org\eclipse\wb\
?????目錄???????????0??2018-07-30?15:35??yan0603\bin\org\eclipse\wb\swing\
?????文件????????1988??2017-06-08?15:59??yan0603\bin\org\eclipse\wb\swing\FocusTraversalOnArray.class
?????目錄???????????0??2018-07-30?15:35??yan0603\bin\yan0603\
?????文件?????????607??2017-06-12?10:43??yan0603\bin\yan0603\Login$1.class
?????文件????????7015??2017-06-12?10:43??yan0603\bin\yan0603\Login.class
?????文件?????????625??2017-06-11?08:42??yan0603\bin\yan0603\Register$1.class
?????文件????????6582??2017-06-11?08:42??yan0603\bin\yan0603\Register.class
?????文件????????3553??2017-06-10?16:40??yan0603\bin\yan0603\Select.class
?????文件?????????789??2017-06-09?11:26??yan0603\bin\yan0603\Vote$1.class
?????文件????????3595??2017-06-09?11:26??yan0603\bin\yan0603\Vote$MyActionListener.class
?????文件????????9069??2017-06-09?11:26??yan0603\bin\yan0603\Vote.class
?????文件????????7753??2017-06-09?11:26??yan0603\bin\yan0603\VoteBuy.class
?????文件???????81600??2017-06-03?21:58??yan0603\jgoodies-common-1.8.0-sources.jar
?????文件???????44882??2017-06-03?21:58??yan0603\jgoodies-common-1.8.0.jar
?????文件??????174206??2017-06-03?21:58??yan0603\jgoodies-forms-1.8.0-sources.jar
?????文件??????131647??2017-06-03?21:58??yan0603\jgoodies-forms-1.8.0.jar
?????目錄???????????0??2018-07-30?15:35??yan0603\src\
?????目錄???????????0??2018-07-30?15:35??yan0603\src\org\
?????目錄???????????0??2018-07-30?15:35??yan0603\src\org\eclipse\
?????目錄???????????0??2018-07-30?15:35??yan0603\src\org\eclipse\wb\
?????目錄???????????0??2018-07-30?15:35??yan0603\src\org\eclipse\wb\swing\
............此處省略10個(gè)文件信息

評(píng)論

共有 條評(píng)論

相關(guān)資源