本文整理了Java中org.glassfish.security.common.Group.<init>()
方法的一些代码示例,展示了Group.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Group.<init>()
方法的具体详情如下:
包路径:org.glassfish.security.common.Group
类名称:Group
方法名:<init>
[英]Creates a new Group attribute
[中]创建新的组属性
代码示例来源:origin: stackoverflow.com
import javafx.application.Application;
import javafx.scene.*;
import javafx.scene.media.*;
import javafx.stage.Stage;
public class VideoPlayerExample extends Application {
public static void main(String[] args) throws Exception { launch(args); }
@Override public void start(final Stage stage) throws Exception {
final MediaPlayer oracleVid = new MediaPlayer(
new Media("http://download.oracle.com/otndocs/products/javafx/oow2010-2.flv")
);
stage.setScene(new Scene(new Group(new MediaView(oracleVid)), 540, 208));
stage.show();
oracleVid.play();
}
}
代码示例来源:origin: stackoverflow.com
public void start(Stage stage) {
Scene scene = new Scene(new Group(), 300, 200);
stage.setScene(scene);
stage.titleProperty().bind(
scene.widthProperty().asString().
concat(" : ").
concat(scene.heightProperty().asString()));
stage.show();
}
代码示例来源:origin: stackoverflow.com
this.content = content;
Group contentGroup = new Group();
zoomGroup = new Group();
contentGroup.getChildren().add(zoomGroup);
zoomGroup.getChildren().add(content);
代码示例来源:origin: stackoverflow.com
firstTime = true;
Platform.setImplicitExit(false);
Scene scene = new Scene(new Group(), 800, 600);
stage.setScene(scene);
stage.show();
代码示例来源:origin: stackoverflow.com
canvas = new Group();
cellLayer = new CellLayer();
代码示例来源:origin: stackoverflow.com
public void start(Stage primaryStage) throws Exception {
final Group root = new Group();
Scene scene = new Scene(root, 400, 400);
primaryStage.setScene(scene);
代码示例来源:origin: stackoverflow.com
@Override
public int getCount() {
return cursor.getCount();
}
@Override
public Object getGroup(int position) {
cursor.moveToPosition(position);
String column1 = cursor.getString(COLUMN_1);
String column2 = cursor.getString(COLUMN_2);
GroupObject group = new Group(column1, column2);
return group;
}
代码示例来源:origin: stackoverflow.com
Group[] groups = new Group[1000];
for (int i = 0; i < 1000; i++) {
groups[i] = new Group();
groups[i].identifier = XXX;
groups[i].members = new int[XXX];
...
}
代码示例来源:origin: stackoverflow.com
edge = new Group({
children: [
new Path.Line({
from: gn.position,
to: event.point,
strokeColor: 'maroon',
name: 'line'
}),
new PointTextContent('weight')
]
});
代码示例来源:origin: stackoverflow.com
function Group(){
this.groups = null;
var self = this;
this.findGroups = function() {
getGroups().then(function (g) {
self.groups = g;
});
};
};
var group = new Group();
group.findGroups();
代码示例来源:origin: org.glassfish.security/security
public java.lang.Object run() {
for (String group : groups) {
fs.getPrincipals().add(new Group(group));
}
return fs;
}
});
代码示例来源:origin: org.glassfish.security/security
public java.lang.Object run() {
for (String group : groups) {
fs.getPrincipals().add(new Group(group));
}
return fs;
}
});
代码示例来源:origin: org.glassfish.security/security
public java.lang.Object run() {
while (groups.hasMoreElements()) {
String grp = (String) groups.nextElement();
fs.getPrincipals().add(new Group(grp));
}
return fs;
}
});
代码示例来源:origin: stackoverflow.com
double width = 640;
double height = 480;
Rectangle2D screenBounds = Screen.getPrimary().getVisualBounds();
stage.setX((screenBounds.getWidth() - width) / 2);
stage.setY((screenBounds.getHeight() - height) / 2);
final Scene scene = new Scene( new Group(), width, height);
stage.setScene(scene);
stage.show();
代码示例来源:origin: org.glassfish.deployment/dol
/**
* SAX Parser API implementation, we don't really care for now.
*/
public void startElement(XMLElement element, Attributes attributes) {
if (RuntimeTagNames.GROUP.equals(element.getQName())) {
for (int i=0; i<attributes.getLength();i++) {
if (RuntimeTagNames.NAME.equals(attributes.getQName(i))) {
group = new Group(attributes.getValue(i));
}
}
}
}
代码示例来源:origin: stackoverflow.com
double width = 640;
double height = 480;
final Scene scene = new Scene( new Group(), width, height);
stage.setScene(scene);
stage.show();
Rectangle2D screenBounds = Screen.getPrimary().getVisualBounds();
stage.setX((screenBounds.getWidth() - stage.getWidth()) / 2);
stage.setY((screenBounds.getHeight() - stage.getHeight()) / 2);
代码示例来源:origin: stackoverflow.com
waitForInit = new Semaphore(0);
root = new Group();
root.getChildren().add(jfxnode);
FxPlatformExecutor.runOnFxApplication(() -> {
snapshot = jfxnode.snapshot(new SnapshotParameters(), null);
waitForInit.release();
});
waitForInit.acquireUninterruptibly();
BufferedImage bi = SwingFXUtils.fromFXImage(snapshot, null);
代码示例来源:origin: stackoverflow.com
A = new Group();
A.getSeason(Seasons.WINTER).addDay(Days.MONDAY);
A.getSeason(Seasons.SPRING).addDay(Days.TUESDAY).addDay(Days.THURSDAY);
A.getSeason(Seasons.SPRING).addDays(Days.MONDAY, Days.TUESDAY, ...);
schedule = new Schedule();
schedule.addWateringGroup( A );
代码示例来源:origin: org.glassfish.main.security/security-ee
public Group getGroupInstance(String name, String realm){
WebSecurityManagerFactory fact = getWebSecurityManagerFactory();
Group g = (Group)fact.getAdminGroup(name, realm);
if(g == null){
g = new Group(name);
}
return g;
}
}
代码示例来源:origin: stackoverflow.com
public void start(Stage stage) throws ClassNotFoundException, SQLException {
Class.forName("com.mysql.jdbc.Driver");
Scene scene =new Scene(new Group(),800,600);
JdbcDataSource dataSource=new JdbcDataSource("jdbc:mysql://localhost:3306/mybasename?zeroDateTimeBehavior=convertToNull&user=username&password=userpassword", "clients", "descr");
TableView tableView=new TableView();
tableView.setItems(dataSource.getData());
tableView.getColumns().addAll(dataSource.getColumns());
((Group)scene.getRoot()).getChildren().add(tableView);
stage.setScene(scene);
stage.show();
}
内容来源于网络,如有侵权,请联系作者删除!