id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
8,300 | JRebirth/JRebirth | org.jrebirth.af/api/src/main/java/org/jrebirth/af/api/exception/JRebirthThreadException.java | JRebirthThreadException.getThreadName | private static String getThreadName(final Type threadType) {
String threadName;
switch (threadType) {
case NOT_RUN_INTO_JAT:
threadName = "JavaFX Application Thread";
break;
case NOT_RUN_INTO_JIT:
threadName = "JRebirth Internal Th... | java | private static String getThreadName(final Type threadType) {
String threadName;
switch (threadType) {
case NOT_RUN_INTO_JAT:
threadName = "JavaFX Application Thread";
break;
case NOT_RUN_INTO_JIT:
threadName = "JRebirth Internal Th... | [
"private",
"static",
"String",
"getThreadName",
"(",
"final",
"Type",
"threadType",
")",
"{",
"String",
"threadName",
";",
"switch",
"(",
"threadType",
")",
"{",
"case",
"NOT_RUN_INTO_JAT",
":",
"threadName",
"=",
"\"JavaFX Application Thread\"",
";",
"break",
";"... | Return the concerned thread name.
@param threadType the thread type concerned
@return the thread name concerned | [
"Return",
"the",
"concerned",
"thread",
"name",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/api/src/main/java/org/jrebirth/af/api/exception/JRebirthThreadException.java#L67-L84 |
8,301 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/parameter/ObjectParameter.java | ObjectParameter.parseObject | public Object parseObject(final ParameterEntry parameterEntry) {
Object res = null;
res = parseObjectString(this.object.getClass(), parameterEntry.getSerializedString());
// Store the parsed object directly into the entry instance
// for later access
parameterEntry.setObject(re... | java | public Object parseObject(final ParameterEntry parameterEntry) {
Object res = null;
res = parseObjectString(this.object.getClass(), parameterEntry.getSerializedString());
// Store the parsed object directly into the entry instance
// for later access
parameterEntry.setObject(re... | [
"public",
"Object",
"parseObject",
"(",
"final",
"ParameterEntry",
"parameterEntry",
")",
"{",
"Object",
"res",
"=",
"null",
";",
"res",
"=",
"parseObjectString",
"(",
"this",
".",
"object",
".",
"getClass",
"(",
")",
",",
"parameterEntry",
".",
"getSerialized... | Parse the serialized object.
@param parameterEntry the parameter entry to convert that wrap the serialized string
@return the real object | [
"Parse",
"the",
"serialized",
"object",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/parameter/ObjectParameter.java#L103-L113 |
8,302 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/parameter/ObjectParameter.java | ObjectParameter.parseObjectString | private Object parseObjectString(Class<?> objectType, final String objectString) {
Object res;
if (ResourceParams.class.isAssignableFrom(objectType)) {
// Setup the default object
if (this.object instanceof List<?>) {
ResourceParams rp = (ResourceParams) ((List<?>... | java | private Object parseObjectString(Class<?> objectType, final String objectString) {
Object res;
if (ResourceParams.class.isAssignableFrom(objectType)) {
// Setup the default object
if (this.object instanceof List<?>) {
ResourceParams rp = (ResourceParams) ((List<?>... | [
"private",
"Object",
"parseObjectString",
"(",
"Class",
"<",
"?",
">",
"objectType",
",",
"final",
"String",
"objectString",
")",
"{",
"Object",
"res",
";",
"if",
"(",
"ResourceParams",
".",
"class",
".",
"isAssignableFrom",
"(",
"objectType",
")",
")",
"{",... | Parse a string representation of an object.
@param objectType the type of the object parsed
@param objectString the serialized object
@return the real object | [
"Parse",
"a",
"string",
"representation",
"of",
"an",
"object",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/parameter/ObjectParameter.java#L123-L153 |
8,303 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/parameter/ObjectParameter.java | ObjectParameter.parseClassParameter | private Object parseClassParameter(final String serializedObject) {
Object res = null;
try {
res = Class.forName(serializedObject);
} catch (final ClassNotFoundException e) {
throw new CoreRuntimeException("Impossible to load class " + serializedObject, e);
}
... | java | private Object parseClassParameter(final String serializedObject) {
Object res = null;
try {
res = Class.forName(serializedObject);
} catch (final ClassNotFoundException e) {
throw new CoreRuntimeException("Impossible to load class " + serializedObject, e);
}
... | [
"private",
"Object",
"parseClassParameter",
"(",
"final",
"String",
"serializedObject",
")",
"{",
"Object",
"res",
"=",
"null",
";",
"try",
"{",
"res",
"=",
"Class",
".",
"forName",
"(",
"serializedObject",
")",
";",
"}",
"catch",
"(",
"final",
"ClassNotFoun... | Parse a class definition by calling Class.forName.
@param serializedObject the full class name
@return the class object | [
"Parse",
"a",
"class",
"definition",
"by",
"calling",
"Class",
".",
"forName",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/parameter/ObjectParameter.java#L162-L170 |
8,304 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/parameter/ObjectParameter.java | ObjectParameter.parseEnumParameter | @SuppressWarnings("unchecked")
private Object parseEnumParameter(final Enum<?> e, final String serializedObject) {
final Object res = Enum.valueOf(e.getClass(), serializedObject);
return res;
} | java | @SuppressWarnings("unchecked")
private Object parseEnumParameter(final Enum<?> e, final String serializedObject) {
final Object res = Enum.valueOf(e.getClass(), serializedObject);
return res;
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"private",
"Object",
"parseEnumParameter",
"(",
"final",
"Enum",
"<",
"?",
">",
"e",
",",
"final",
"String",
"serializedObject",
")",
"{",
"final",
"Object",
"res",
"=",
"Enum",
".",
"valueOf",
"(",
"e",
... | Parse an Enum definition by calling Enum.valueOf.
@param serializedObject the full enumerated value
@return the class object | [
"Parse",
"an",
"Enum",
"definition",
"by",
"calling",
"Enum",
".",
"valueOf",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/parameter/ObjectParameter.java#L179-L183 |
8,305 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/parameter/ObjectParameter.java | ObjectParameter.parseFileParameter | private Object parseFileParameter(final String serializedObject) {
final File res = new File(serializedObject);
if (!res.exists()) {
throw new CoreRuntimeException("Impossible to load file " + serializedObject);
}
return res;
} | java | private Object parseFileParameter(final String serializedObject) {
final File res = new File(serializedObject);
if (!res.exists()) {
throw new CoreRuntimeException("Impossible to load file " + serializedObject);
}
return res;
} | [
"private",
"Object",
"parseFileParameter",
"(",
"final",
"String",
"serializedObject",
")",
"{",
"final",
"File",
"res",
"=",
"new",
"File",
"(",
"serializedObject",
")",
";",
"if",
"(",
"!",
"res",
".",
"exists",
"(",
")",
")",
"{",
"throw",
"new",
"Cor... | Parse a file definition by using canonical path.
@param serializedObject the full file path
@return the File object | [
"Parse",
"a",
"file",
"definition",
"by",
"using",
"canonical",
"path",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/parameter/ObjectParameter.java#L192-L198 |
8,306 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/parameter/ObjectParameter.java | ObjectParameter.parseListParameter | private Object parseListParameter(final String serializedObject) {
final List<Object> res = new ArrayList<>();
final Class<?> objectType = ((List<?>) this.object).get(0).getClass();
for (final String item : serializedObject.split(";")) {
res.add(parseObjectString(objectType, item))... | java | private Object parseListParameter(final String serializedObject) {
final List<Object> res = new ArrayList<>();
final Class<?> objectType = ((List<?>) this.object).get(0).getClass();
for (final String item : serializedObject.split(";")) {
res.add(parseObjectString(objectType, item))... | [
"private",
"Object",
"parseListParameter",
"(",
"final",
"String",
"serializedObject",
")",
"{",
"final",
"List",
"<",
"Object",
">",
"res",
"=",
"new",
"ArrayList",
"<>",
"(",
")",
";",
"final",
"Class",
"<",
"?",
">",
"objectType",
"=",
"(",
"(",
"List... | Parse a generic list.
@param serializedObject the concatenated list
@return the list object | [
"Parse",
"a",
"generic",
"list",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/parameter/ObjectParameter.java#L207-L217 |
8,307 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/parameter/ObjectParameter.java | ObjectParameter.parsePrimitive | private Object parsePrimitive(Class<?> objectType, final String serializedObject) {
Object res = null;
if (Boolean.class.isAssignableFrom(objectType)) {
res = Boolean.valueOf(serializedObject);
} else if (String.class.isAssignableFrom(objectType)) {
res = serializedObjec... | java | private Object parsePrimitive(Class<?> objectType, final String serializedObject) {
Object res = null;
if (Boolean.class.isAssignableFrom(objectType)) {
res = Boolean.valueOf(serializedObject);
} else if (String.class.isAssignableFrom(objectType)) {
res = serializedObjec... | [
"private",
"Object",
"parsePrimitive",
"(",
"Class",
"<",
"?",
">",
"objectType",
",",
"final",
"String",
"serializedObject",
")",
"{",
"Object",
"res",
"=",
"null",
";",
"if",
"(",
"Boolean",
".",
"class",
".",
"isAssignableFrom",
"(",
"objectType",
")",
... | Parse primitive serialized object.
@param objectType the type of the object parsed
@param serializedObject the serialized string to parse
@return a new fresh instance of the object | [
"Parse",
"primitive",
"serialized",
"object",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/parameter/ObjectParameter.java#L227-L250 |
8,308 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/parameter/ParameterBuilder.java | ParameterBuilder.searchConfigurationFiles | public void searchConfigurationFiles(final String wildcard, final String extension) {
// Store parameters
this.configurationFileWildcard = wildcard;
this.configurationFileExtension = extension;
// Search and analyze all properties files available
readPropertiesFiles();
... | java | public void searchConfigurationFiles(final String wildcard, final String extension) {
// Store parameters
this.configurationFileWildcard = wildcard;
this.configurationFileExtension = extension;
// Search and analyze all properties files available
readPropertiesFiles();
... | [
"public",
"void",
"searchConfigurationFiles",
"(",
"final",
"String",
"wildcard",
",",
"final",
"String",
"extension",
")",
"{",
"// Store parameters\r",
"this",
".",
"configurationFileWildcard",
"=",
"wildcard",
";",
"this",
".",
"configurationFileExtension",
"=",
"e... | Search configuration files according to the parameters provided.
@param wildcard the regex wildcard (must not be null)
@param extension the file extension without the first dot (ie: properties) (must not be null) | [
"Search",
"configuration",
"files",
"according",
"to",
"the",
"parameters",
"provided",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/parameter/ParameterBuilder.java#L79-L87 |
8,309 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/parameter/ParameterBuilder.java | ParameterBuilder.readPropertiesFile | private void readPropertiesFile(final String custConfFileName) {
final Properties p = new Properties();
LOGGER.log(READ_CONF_FILE, custConfFileName);
try (InputStream is = ClasspathUtility.loadInputStream(custConfFileName)) {
// Read the properties file
p.loa... | java | private void readPropertiesFile(final String custConfFileName) {
final Properties p = new Properties();
LOGGER.log(READ_CONF_FILE, custConfFileName);
try (InputStream is = ClasspathUtility.loadInputStream(custConfFileName)) {
// Read the properties file
p.loa... | [
"private",
"void",
"readPropertiesFile",
"(",
"final",
"String",
"custConfFileName",
")",
"{",
"final",
"Properties",
"p",
"=",
"new",
"Properties",
"(",
")",
";",
"LOGGER",
".",
"log",
"(",
"READ_CONF_FILE",
",",
"custConfFileName",
")",
";",
"try",
"(",
"I... | Read a customized configuration file to load parameters values.
@param custConfFileName the file to load | [
"Read",
"a",
"customized",
"configuration",
"file",
"to",
"load",
"parameters",
"values",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/parameter/ParameterBuilder.java#L118-L143 |
8,310 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/parameter/ParameterBuilder.java | ParameterBuilder.resolveVarEnv | private String resolveVarEnv(final String entryValue) {
String value = entryValue;
if (value != null) {
value = checkPattern(value, ENV_VAR_PATTERN1, true);
value = checkPattern(value, ENV_VAR_PATTERN2, false);
}
return value;
} | java | private String resolveVarEnv(final String entryValue) {
String value = entryValue;
if (value != null) {
value = checkPattern(value, ENV_VAR_PATTERN1, true);
value = checkPattern(value, ENV_VAR_PATTERN2, false);
}
return value;
} | [
"private",
"String",
"resolveVarEnv",
"(",
"final",
"String",
"entryValue",
")",
"{",
"String",
"value",
"=",
"entryValue",
";",
"if",
"(",
"value",
"!=",
"null",
")",
"{",
"value",
"=",
"checkPattern",
"(",
"value",
",",
"ENV_VAR_PATTERN1",
",",
"true",
"... | Resolve any environment variable found into the string.
@param entryValue the string to check and resolve
@return the final value with environment variable resolved | [
"Resolve",
"any",
"environment",
"variable",
"found",
"into",
"the",
"string",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/parameter/ParameterBuilder.java#L162-L170 |
8,311 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/parameter/ParameterBuilder.java | ParameterBuilder.checkPattern | private String checkPattern(final String value, final Pattern pattern, final boolean withBrace) {
String res = value;
final Matcher matcher = pattern.matcher(value);
while (matcher.find()) {
final String envName = matcher.group(2);
if (!this.varenvMap.containsKey(env... | java | private String checkPattern(final String value, final Pattern pattern, final boolean withBrace) {
String res = value;
final Matcher matcher = pattern.matcher(value);
while (matcher.find()) {
final String envName = matcher.group(2);
if (!this.varenvMap.containsKey(env... | [
"private",
"String",
"checkPattern",
"(",
"final",
"String",
"value",
",",
"final",
"Pattern",
"pattern",
",",
"final",
"boolean",
"withBrace",
")",
"{",
"String",
"res",
"=",
"value",
";",
"final",
"Matcher",
"matcher",
"=",
"pattern",
".",
"matcher",
"(",
... | Check if the given string contains an environment variable.
@param value the string value to parse
@param pattern the regex pattern to use
@param withBrace true for ${varname}, false for $varname
@return the given string updated with right environment variable content | [
"Check",
"if",
"the",
"given",
"string",
"contains",
"an",
"environment",
"variable",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/parameter/ParameterBuilder.java#L181-L202 |
8,312 | pmlopes/yoke | framework/src/main/java/com/jetdrone/vertx/yoke/YokeSecurity.java | YokeSecurity.getCipher | public static Cipher getCipher(final @NotNull Key key, int mode) {
try {
Cipher cipher = Cipher.getInstance(key.getAlgorithm());
cipher.init(mode, key);
return cipher;
} catch (NoSuchAlgorithmException | InvalidKeyException | NoSuchPaddingException e) {
th... | java | public static Cipher getCipher(final @NotNull Key key, int mode) {
try {
Cipher cipher = Cipher.getInstance(key.getAlgorithm());
cipher.init(mode, key);
return cipher;
} catch (NoSuchAlgorithmException | InvalidKeyException | NoSuchPaddingException e) {
th... | [
"public",
"static",
"Cipher",
"getCipher",
"(",
"final",
"@",
"NotNull",
"Key",
"key",
",",
"int",
"mode",
")",
"{",
"try",
"{",
"Cipher",
"cipher",
"=",
"Cipher",
".",
"getInstance",
"(",
"key",
".",
"getAlgorithm",
"(",
")",
")",
";",
"cipher",
".",
... | Creates a new Cipher
@return Cipher implementation | [
"Creates",
"a",
"new",
"Cipher"
] | fe8a64036f09fb745f0644faddd46162d64faf3c | https://github.com/pmlopes/yoke/blob/fe8a64036f09fb745f0644faddd46162d64faf3c/framework/src/main/java/com/jetdrone/vertx/yoke/YokeSecurity.java#L32-L40 |
8,313 | JRebirth/JRebirth | org.jrebirth.af/transition/src/main/java/org/jrebirth/af/transition/slicer/RandomFadingService.java | RandomFadingService.setNodes | public void setNodes(final List<? extends Node> nodesToAdd) {
for (final Node n : nodesToAdd) {
this.nodes.add(n);
}
} | java | public void setNodes(final List<? extends Node> nodesToAdd) {
for (final Node n : nodesToAdd) {
this.nodes.add(n);
}
} | [
"public",
"void",
"setNodes",
"(",
"final",
"List",
"<",
"?",
"extends",
"Node",
">",
"nodesToAdd",
")",
"{",
"for",
"(",
"final",
"Node",
"n",
":",
"nodesToAdd",
")",
"{",
"this",
".",
"nodes",
".",
"add",
"(",
"n",
")",
";",
"}",
"}"
] | Set the nodes.
@param nodesToAdd the new nodes | [
"Set",
"the",
"nodes",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/transition/src/main/java/org/jrebirth/af/transition/slicer/RandomFadingService.java#L69-L73 |
8,314 | JRebirth/JRebirth | org.jrebirth.af/showcase/demo/src/main/java/org/jrebirth/af/showcase/demo/ui/MainController.java | MainController.onButtonFired | void onButtonFired(final ActionEvent event) {
final Optional<Button> b = getTarget(event, Button.class);
final Optional<UniqueKey<? extends Model>> data = getUserData(b, StackWaves.PAGE_MODEL_KEY);
if (data.isPresent()) {
model().sendWave(StackWaves.SHOW_PAGE_MODEL,
... | java | void onButtonFired(final ActionEvent event) {
final Optional<Button> b = getTarget(event, Button.class);
final Optional<UniqueKey<? extends Model>> data = getUserData(b, StackWaves.PAGE_MODEL_KEY);
if (data.isPresent()) {
model().sendWave(StackWaves.SHOW_PAGE_MODEL,
... | [
"void",
"onButtonFired",
"(",
"final",
"ActionEvent",
"event",
")",
"{",
"final",
"Optional",
"<",
"Button",
">",
"b",
"=",
"getTarget",
"(",
"event",
",",
"Button",
".",
"class",
")",
";",
"final",
"Optional",
"<",
"UniqueKey",
"<",
"?",
"extends",
"Mod... | When a button is fired display the related ModuleModel.
@param event the action event | [
"When",
"a",
"button",
"is",
"fired",
"display",
"the",
"related",
"ModuleModel",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/showcase/demo/src/main/java/org/jrebirth/af/showcase/demo/ui/MainController.java#L56-L68 |
8,315 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/font/FontBuilder.java | FontBuilder.buildRealFont | private Font buildRealFont(final RealFont rFont) {
checkFontStatus(rFont);
return Font.font(transformFontName(rFont.name().name()), rFont.size());
} | java | private Font buildRealFont(final RealFont rFont) {
checkFontStatus(rFont);
return Font.font(transformFontName(rFont.name().name()), rFont.size());
} | [
"private",
"Font",
"buildRealFont",
"(",
"final",
"RealFont",
"rFont",
")",
"{",
"checkFontStatus",
"(",
"rFont",
")",
";",
"return",
"Font",
".",
"font",
"(",
"transformFontName",
"(",
"rFont",
".",
"name",
"(",
")",
".",
"name",
"(",
")",
")",
",",
"... | Build a real font with name and size.
@param rFont the real font enum
@return the javafx font | [
"Build",
"a",
"real",
"font",
"with",
"name",
"and",
"size",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/font/FontBuilder.java#L84-L87 |
8,316 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/font/FontBuilder.java | FontBuilder.buildFamilyFont | private Font buildFamilyFont(final FamilyFont familyFont) {
Font font = null;
if (familyFont.posture() == null && familyFont.weight() == null) {
font = Font.font(transformFontName(familyFont.family()), familyFont.size());
} else if (familyFont.posture() == null) {
font = ... | java | private Font buildFamilyFont(final FamilyFont familyFont) {
Font font = null;
if (familyFont.posture() == null && familyFont.weight() == null) {
font = Font.font(transformFontName(familyFont.family()), familyFont.size());
} else if (familyFont.posture() == null) {
font = ... | [
"private",
"Font",
"buildFamilyFont",
"(",
"final",
"FamilyFont",
"familyFont",
")",
"{",
"Font",
"font",
"=",
"null",
";",
"if",
"(",
"familyFont",
".",
"posture",
"(",
")",
"==",
"null",
"&&",
"familyFont",
".",
"weight",
"(",
")",
"==",
"null",
")",
... | Build a Family Font with name and size.
@param familyFont the family font enum
@return the javafx font | [
"Build",
"a",
"Family",
"Font",
"with",
"name",
"and",
"size",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/font/FontBuilder.java#L96-L108 |
8,317 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/font/FontBuilder.java | FontBuilder.checkFontStatus | private void checkFontStatus(final FontParams fontParams) {
// Try to load system fonts
final List<String> fonts = Font.getFontNames(transformFontName(fontParams.name().name()));
Font font = null;
String fontName = null;
if (fonts.isEmpty()) {
final List<String> f... | java | private void checkFontStatus(final FontParams fontParams) {
// Try to load system fonts
final List<String> fonts = Font.getFontNames(transformFontName(fontParams.name().name()));
Font font = null;
String fontName = null;
if (fonts.isEmpty()) {
final List<String> f... | [
"private",
"void",
"checkFontStatus",
"(",
"final",
"FontParams",
"fontParams",
")",
"{",
"// Try to load system fonts",
"final",
"List",
"<",
"String",
">",
"fonts",
"=",
"Font",
".",
"getFontNames",
"(",
"transformFontName",
"(",
"fontParams",
".",
"name",
"(",
... | Load the font file.
@param fontParams the name of the font to load | [
"Load",
"the",
"font",
"file",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/font/FontBuilder.java#L126-L175 |
8,318 | pmlopes/yoke | middleware/swagger/src/main/java/com/jetdrone/vertx/yoke/middleware/Swagger.java | Swagger.from | public static Swagger from(final Swagger router, final Object... objs) {
for (Object o : objs) {
Processor.process(router, o);
}
return router;
} | java | public static Swagger from(final Swagger router, final Object... objs) {
for (Object o : objs) {
Processor.process(router, o);
}
return router;
} | [
"public",
"static",
"Swagger",
"from",
"(",
"final",
"Swagger",
"router",
",",
"final",
"Object",
"...",
"objs",
")",
"{",
"for",
"(",
"Object",
"o",
":",
"objs",
")",
"{",
"Processor",
".",
"process",
"(",
"router",
",",
"o",
")",
";",
"}",
"return"... | Builds a Swagger from an annotated Java Object | [
"Builds",
"a",
"Swagger",
"from",
"an",
"annotated",
"Java",
"Object"
] | fe8a64036f09fb745f0644faddd46162d64faf3c | https://github.com/pmlopes/yoke/blob/fe8a64036f09fb745f0644faddd46162d64faf3c/middleware/swagger/src/main/java/com/jetdrone/vertx/yoke/middleware/Swagger.java#L317-L323 |
8,319 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/handler/AnnotationEventHandler.java | AnnotationEventHandler.checkCallbackMethods | private void checkCallbackMethods() throws CoreException {
for (final EnumEventType eet : getAnnotationValue()) {
final String methodName = buildHandlingMethodName(eet);
final Class<?> eventClass = getAnnotationApiEventClass();
try {
this.callbackObject.ge... | java | private void checkCallbackMethods() throws CoreException {
for (final EnumEventType eet : getAnnotationValue()) {
final String methodName = buildHandlingMethodName(eet);
final Class<?> eventClass = getAnnotationApiEventClass();
try {
this.callbackObject.ge... | [
"private",
"void",
"checkCallbackMethods",
"(",
")",
"throws",
"CoreException",
"{",
"for",
"(",
"final",
"EnumEventType",
"eet",
":",
"getAnnotationValue",
"(",
")",
")",
"{",
"final",
"String",
"methodName",
"=",
"buildHandlingMethodName",
"(",
"eet",
")",
";"... | For each annotation event type, check if the callback method exists.
@throws CoreException an exception if the current class doesn't have the right handling method | [
"For",
"each",
"annotation",
"event",
"type",
"check",
"if",
"the",
"callback",
"method",
"exists",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/handler/AnnotationEventHandler.java#L81-L96 |
8,320 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/handler/AnnotationEventHandler.java | AnnotationEventHandler.buildHandlingMethodName | private String buildHandlingMethodName(final EnumEventType annotationType) {
final StringBuilder methodName = new StringBuilder();
if (Arrays.asList(getAnnotationValue()).contains(annotationType)) {
// Lower case the first letter of the annotation name
methodName.append(this.an... | java | private String buildHandlingMethodName(final EnumEventType annotationType) {
final StringBuilder methodName = new StringBuilder();
if (Arrays.asList(getAnnotationValue()).contains(annotationType)) {
// Lower case the first letter of the annotation name
methodName.append(this.an... | [
"private",
"String",
"buildHandlingMethodName",
"(",
"final",
"EnumEventType",
"annotationType",
")",
"{",
"final",
"StringBuilder",
"methodName",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"if",
"(",
"Arrays",
".",
"asList",
"(",
"getAnnotationValue",
"(",
")",
... | Build the handling method name used to manage this event.
@param annotationType the custom annotation event type used to define the kind of event to manage
@return the method name to trigger into the callback object | [
"Build",
"the",
"handling",
"method",
"name",
"used",
"to",
"manage",
"this",
"event",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/handler/AnnotationEventHandler.java#L118-L137 |
8,321 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/handler/AnnotationEventHandler.java | AnnotationEventHandler.convertEventToEnum | private EnumEventType convertEventToEnum(final EventType<? extends Event> eventType) {
EnumEventType convertedType = null;
if (getAnnotationValue() != null && getAnnotationValue().length > 0) {
// Retrieve all annotation event types
final EnumEventType[] aTypes = getAnnotationV... | java | private EnumEventType convertEventToEnum(final EventType<? extends Event> eventType) {
EnumEventType convertedType = null;
if (getAnnotationValue() != null && getAnnotationValue().length > 0) {
// Retrieve all annotation event types
final EnumEventType[] aTypes = getAnnotationV... | [
"private",
"EnumEventType",
"convertEventToEnum",
"(",
"final",
"EventType",
"<",
"?",
"extends",
"Event",
">",
"eventType",
")",
"{",
"EnumEventType",
"convertedType",
"=",
"null",
";",
"if",
"(",
"getAnnotationValue",
"(",
")",
"!=",
"null",
"&&",
"getAnnotati... | Convert a JavaFX event type into an annotation event type.
@param eventType the JavaFX event type
@return the Annotation event type or null if not found | [
"Convert",
"a",
"JavaFX",
"event",
"type",
"into",
"an",
"annotation",
"event",
"type",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/handler/AnnotationEventHandler.java#L174-L190 |
8,322 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/handler/AnnotationEventHandler.java | AnnotationEventHandler.callMethod | private void callMethod(final String methodName, final Event event) {
final Class<?> ctrlClass = this.callbackObject.getClass();
try {
final Method method = ctrlClass.getDeclaredMethod(methodName, event.getClass());
ClassUtility.callMethod(method, this.callbackObject, event);
... | java | private void callMethod(final String methodName, final Event event) {
final Class<?> ctrlClass = this.callbackObject.getClass();
try {
final Method method = ctrlClass.getDeclaredMethod(methodName, event.getClass());
ClassUtility.callMethod(method, this.callbackObject, event);
... | [
"private",
"void",
"callMethod",
"(",
"final",
"String",
"methodName",
",",
"final",
"Event",
"event",
")",
"{",
"final",
"Class",
"<",
"?",
">",
"ctrlClass",
"=",
"this",
".",
"callbackObject",
".",
"getClass",
"(",
")",
";",
"try",
"{",
"final",
"Metho... | Call the method into the callback object.
@param methodName the method name to call
@param event the event to trigger | [
"Call",
"the",
"method",
"into",
"the",
"callback",
"object",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/handler/AnnotationEventHandler.java#L198-L210 |
8,323 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/service/AbstractService.java | AbstractService.runTask | private <T> ServiceTask<T> runTask(final Wave sourceWave, final Method method, final Object[] parameterValues) {
// Allow to remove the pending task when the service is finished
sourceWave.addWaveListener(new ServiceTaskWaveListener());
// Create a new ServiceTask to handle this request and fo... | java | private <T> ServiceTask<T> runTask(final Wave sourceWave, final Method method, final Object[] parameterValues) {
// Allow to remove the pending task when the service is finished
sourceWave.addWaveListener(new ServiceTaskWaveListener());
// Create a new ServiceTask to handle this request and fo... | [
"private",
"<",
"T",
">",
"ServiceTask",
"<",
"T",
">",
"runTask",
"(",
"final",
"Wave",
"sourceWave",
",",
"final",
"Method",
"method",
",",
"final",
"Object",
"[",
"]",
"parameterValues",
")",
"{",
"// Allow to remove the pending task when the service is finished"... | Run the wave type method.
@param sourceWave the source wave
@param parameterValues values to pass to the method
@param method method to call
@param <T> the type of the returned type
@return the service task created | [
"Run",
"the",
"wave",
"type",
"method",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/service/AbstractService.java#L140-L178 |
8,324 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/service/AbstractService.java | AbstractService.bindProgressProperty | private void bindProgressProperty(final ServiceTaskBase<?> task, final DoubleProperty progressProperty) {
// Perform this binding into the JAT to respect widget and task API
JRebirth.runIntoJAT("Bind Progress Property to " + task.getServiceHandlerName(),
() -> {
... | java | private void bindProgressProperty(final ServiceTaskBase<?> task, final DoubleProperty progressProperty) {
// Perform this binding into the JAT to respect widget and task API
JRebirth.runIntoJAT("Bind Progress Property to " + task.getServiceHandlerName(),
() -> {
... | [
"private",
"void",
"bindProgressProperty",
"(",
"final",
"ServiceTaskBase",
"<",
"?",
">",
"task",
",",
"final",
"DoubleProperty",
"progressProperty",
")",
"{",
"// Perform this binding into the JAT to respect widget and task API",
"JRebirth",
".",
"runIntoJAT",
"(",
"\"Bin... | Bind a task to a progress property to follow its progression.
@param task the service task that we need to follow the progression
@param progressBar graphical progress bar | [
"Bind",
"a",
"task",
"to",
"a",
"progress",
"property",
"to",
"follow",
"its",
"progression",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/service/AbstractService.java#L186-L197 |
8,325 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/service/AbstractService.java | AbstractService.bindProgressBar | private void bindProgressBar(final ServiceTaskBase<?> task, final ProgressBar progressBar) {
// Perform this binding into the JAT to respect widget and task API
JRebirth.runIntoJAT("Bind ProgressBar to " + task.getServiceHandlerName(),
() -> {
... | java | private void bindProgressBar(final ServiceTaskBase<?> task, final ProgressBar progressBar) {
// Perform this binding into the JAT to respect widget and task API
JRebirth.runIntoJAT("Bind ProgressBar to " + task.getServiceHandlerName(),
() -> {
... | [
"private",
"void",
"bindProgressBar",
"(",
"final",
"ServiceTaskBase",
"<",
"?",
">",
"task",
",",
"final",
"ProgressBar",
"progressBar",
")",
"{",
"// Perform this binding into the JAT to respect widget and task API",
"JRebirth",
".",
"runIntoJAT",
"(",
"\"Bind ProgressBar... | Bind a task to a progress bar widget to follow its progression.
@param task the service task that we need to follow the progression
@param progressBar graphical progress bar | [
"Bind",
"a",
"task",
"to",
"a",
"progress",
"bar",
"widget",
"to",
"follow",
"its",
"progression",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/service/AbstractService.java#L205-L216 |
8,326 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/service/AbstractService.java | AbstractService.bindTitle | private void bindTitle(final ServiceTask<?> task, final StringProperty titleProperty) {
// Perform this binding into the JAT to respect widget and task API
JRebirth.runIntoJAT("Bind Title for " + task.getServiceHandlerName(),
// Bind the task title
... | java | private void bindTitle(final ServiceTask<?> task, final StringProperty titleProperty) {
// Perform this binding into the JAT to respect widget and task API
JRebirth.runIntoJAT("Bind Title for " + task.getServiceHandlerName(),
// Bind the task title
... | [
"private",
"void",
"bindTitle",
"(",
"final",
"ServiceTask",
"<",
"?",
">",
"task",
",",
"final",
"StringProperty",
"titleProperty",
")",
"{",
"// Perform this binding into the JAT to respect widget and task API",
"JRebirth",
".",
"runIntoJAT",
"(",
"\"Bind Title for \"",
... | Bind a task to a string property that will display the task title.
@param task the service task that we need to follow the progression
@param titleProperty the title presenter | [
"Bind",
"a",
"task",
"to",
"a",
"string",
"property",
"that",
"will",
"display",
"the",
"task",
"title",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/service/AbstractService.java#L224-L230 |
8,327 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/service/AbstractService.java | AbstractService.bindMessage | private void bindMessage(final ServiceTask<?> task, final StringProperty messageProperty) {
// Perform this binding into the JAT to respect widget and task API
JRebirth.runIntoJAT("Bind Message for " + task.getServiceHandlerName(),
// Bind the task title
... | java | private void bindMessage(final ServiceTask<?> task, final StringProperty messageProperty) {
// Perform this binding into the JAT to respect widget and task API
JRebirth.runIntoJAT("Bind Message for " + task.getServiceHandlerName(),
// Bind the task title
... | [
"private",
"void",
"bindMessage",
"(",
"final",
"ServiceTask",
"<",
"?",
">",
"task",
",",
"final",
"StringProperty",
"messageProperty",
")",
"{",
"// Perform this binding into the JAT to respect widget and task API",
"JRebirth",
".",
"runIntoJAT",
"(",
"\"Bind Message for ... | Bind a task to a string property that will display the task message.
@param task the service task that we need to follow the progression
@param messageProperty the message presenter | [
"Bind",
"a",
"task",
"to",
"a",
"string",
"property",
"that",
"will",
"display",
"the",
"task",
"message",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/service/AbstractService.java#L238-L244 |
8,328 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/service/AbstractService.java | AbstractService.updateProgress | public void updateProgress(final Wave wave, final double workDone, final double totalWork, final double progressIncrement) {
if (wave.get(JRebirthWaves.SERVICE_TASK).checkProgressRatio(workDone, totalWork, progressIncrement)) {
// Increase the task progression
JRebirth.runIntoJAT("Serv... | java | public void updateProgress(final Wave wave, final double workDone, final double totalWork, final double progressIncrement) {
if (wave.get(JRebirthWaves.SERVICE_TASK).checkProgressRatio(workDone, totalWork, progressIncrement)) {
// Increase the task progression
JRebirth.runIntoJAT("Serv... | [
"public",
"void",
"updateProgress",
"(",
"final",
"Wave",
"wave",
",",
"final",
"double",
"workDone",
",",
"final",
"double",
"totalWork",
",",
"final",
"double",
"progressIncrement",
")",
"{",
"if",
"(",
"wave",
".",
"get",
"(",
"JRebirthWaves",
".",
"SERVI... | Update the progress of the service task related to the given wave.
@param wave the wave that trigger the service task call
@param workDone the amount of overall work done
@param totalWork the amount of total work to do
@param progressIncrement the value increment used to filter useless progress event | [
"Update",
"the",
"progress",
"of",
"the",
"service",
"task",
"related",
"to",
"the",
"given",
"wave",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/service/AbstractService.java#L330-L338 |
8,329 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/AbstractController.java | AbstractController.getSource | protected <T> Optional<T> getSource(Event event, Class<T> type) {
return getValue(event, event::getSource, type);
} | java | protected <T> Optional<T> getSource(Event event, Class<T> type) {
return getValue(event, event::getSource, type);
} | [
"protected",
"<",
"T",
">",
"Optional",
"<",
"T",
">",
"getSource",
"(",
"Event",
"event",
",",
"Class",
"<",
"T",
">",
"type",
")",
"{",
"return",
"getValue",
"(",
"event",
",",
"event",
"::",
"getSource",
",",
"type",
")",
";",
"}"
] | Gets the source.
@param event the event
@param type the cls
@param <T> the generic type
@return the source | [
"Gets",
"the",
"source",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/AbstractController.java#L333-L335 |
8,330 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/AbstractController.java | AbstractController.getTarget | protected <T> Optional<T> getTarget(Event event, Class<T> type) {
return getValue(event, event::getTarget, type);
} | java | protected <T> Optional<T> getTarget(Event event, Class<T> type) {
return getValue(event, event::getTarget, type);
} | [
"protected",
"<",
"T",
">",
"Optional",
"<",
"T",
">",
"getTarget",
"(",
"Event",
"event",
",",
"Class",
"<",
"T",
">",
"type",
")",
"{",
"return",
"getValue",
"(",
"event",
",",
"event",
"::",
"getTarget",
",",
"type",
")",
";",
"}"
] | Gets the target.
@param event the event
@param type the cls
@param <T> the generic type
@return the target | [
"Gets",
"the",
"target",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/AbstractController.java#L347-L349 |
8,331 | pmlopes/yoke | framework/src/main/java/com/jetdrone/vertx/yoke/engine/StringPlaceholderEngine.java | StringPlaceholderEngine.render | @Override
public void render(final String file, final Map<String, Object> context, final Handler<AsyncResult<Buffer>> handler) {
// verify if the file is still fresh in the cache
read(prefix + file, new AsyncResultHandler<String>() {
@Override
public void handle(AsyncResult<S... | java | @Override
public void render(final String file, final Map<String, Object> context, final Handler<AsyncResult<Buffer>> handler) {
// verify if the file is still fresh in the cache
read(prefix + file, new AsyncResultHandler<String>() {
@Override
public void handle(AsyncResult<S... | [
"@",
"Override",
"public",
"void",
"render",
"(",
"final",
"String",
"file",
",",
"final",
"Map",
"<",
"String",
",",
"Object",
">",
"context",
",",
"final",
"Handler",
"<",
"AsyncResult",
"<",
"Buffer",
">",
">",
"handler",
")",
"{",
"// verify if the fil... | An interpreter for strings with named placeholders.
For example given the string "hello ${myName}" and the map <code>
Map<String, Object> map = new HashMap<>();
map.put("myName", "world");
</code>
the call returns "hello world"
It replaces every occurrence of a named placeholder with its given value
in t... | [
"An",
"interpreter",
"for",
"strings",
"with",
"named",
"placeholders",
"."
] | fe8a64036f09fb745f0644faddd46162d64faf3c | https://github.com/pmlopes/yoke/blob/fe8a64036f09fb745f0644faddd46162d64faf3c/framework/src/main/java/com/jetdrone/vertx/yoke/engine/StringPlaceholderEngine.java#L72-L89 |
8,332 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/AbstractView.java | AbstractView.buildErrorNode | private void buildErrorNode(final CoreException ce) {
final TextArea ta = TextAreaBuilder.create()
.text(ce.getMessage())
.build();
this.errorNode = PaneBuilder.create().children(ta).build();
} | java | private void buildErrorNode(final CoreException ce) {
final TextArea ta = TextAreaBuilder.create()
.text(ce.getMessage())
.build();
this.errorNode = PaneBuilder.create().children(ta).build();
} | [
"private",
"void",
"buildErrorNode",
"(",
"final",
"CoreException",
"ce",
")",
"{",
"final",
"TextArea",
"ta",
"=",
"TextAreaBuilder",
".",
"create",
"(",
")",
".",
"text",
"(",
"ce",
".",
"getMessage",
"(",
")",
")",
".",
"build",
"(",
")",
";",
"this... | Build the errorNode to display the error taht occured.
@param ce the CoreException to display | [
"Build",
"the",
"errorNode",
"to",
"display",
"the",
"error",
"taht",
"occured",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/AbstractView.java#L143-L148 |
8,333 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/AbstractView.java | AbstractView.processViewAnnotation | private void processViewAnnotation() {
// Find the AutoHandler annotation if any because it's optional
final AutoHandler ah = ClassUtility.getLastClassAnnotation(this.getClass(), AutoHandler.class);
// Use the annotation value to define the callbackObject : View or Controller
// When c... | java | private void processViewAnnotation() {
// Find the AutoHandler annotation if any because it's optional
final AutoHandler ah = ClassUtility.getLastClassAnnotation(this.getClass(), AutoHandler.class);
// Use the annotation value to define the callbackObject : View or Controller
// When c... | [
"private",
"void",
"processViewAnnotation",
"(",
")",
"{",
"// Find the AutoHandler annotation if any because it's optional",
"final",
"AutoHandler",
"ah",
"=",
"ClassUtility",
".",
"getLastClassAnnotation",
"(",
"this",
".",
"getClass",
"(",
")",
",",
"AutoHandler",
".",... | Process view annotation.
This will define if callback action will the view itself or its dedicated controller | [
"Process",
"view",
"annotation",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/AbstractView.java#L180-L226 |
8,334 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/AbstractView.java | AbstractView.processFields | private void processFields() throws CoreException {
final Class<?> currentClass = this.getClass();
// Parse view properties
for (final Field f : currentClass.getDeclaredFields()) {
// Only Node and Animation properties are eligible
if (Node.class.isAssignableFrom(f.get... | java | private void processFields() throws CoreException {
final Class<?> currentClass = this.getClass();
// Parse view properties
for (final Field f : currentClass.getDeclaredFields()) {
// Only Node and Animation properties are eligible
if (Node.class.isAssignableFrom(f.get... | [
"private",
"void",
"processFields",
"(",
")",
"throws",
"CoreException",
"{",
"final",
"Class",
"<",
"?",
">",
"currentClass",
"=",
"this",
".",
"getClass",
"(",
")",
";",
"// Parse view properties",
"for",
"(",
"final",
"Field",
"f",
":",
"currentClass",
".... | Process all fields' annotations to auto-link them with event handler.
@throws CoreException if annotation processing fails | [
"Process",
"all",
"fields",
"annotations",
"to",
"auto",
"-",
"link",
"them",
"with",
"event",
"handler",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/AbstractView.java#L233-L260 |
8,335 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/AbstractView.java | AbstractView.processAnnotations | private void processAnnotations(final Field property) throws CoreException {
// For each field annotation we will attach an event handler
for (final Annotation a : property.getAnnotations()) {
if (EventTarget.class.isAssignableFrom(property.getType())) {
// Manage only JReb... | java | private void processAnnotations(final Field property) throws CoreException {
// For each field annotation we will attach an event handler
for (final Annotation a : property.getAnnotations()) {
if (EventTarget.class.isAssignableFrom(property.getType())) {
// Manage only JReb... | [
"private",
"void",
"processAnnotations",
"(",
"final",
"Field",
"property",
")",
"throws",
"CoreException",
"{",
"// For each field annotation we will attach an event handler",
"for",
"(",
"final",
"Annotation",
"a",
":",
"property",
".",
"getAnnotations",
"(",
")",
")"... | Process all OnXxxx Annotation to attach event handler on this field.
@param property the field to analyze
@throws CoreException if annotation processing fails | [
"Process",
"all",
"OnXxxx",
"Annotation",
"to",
"attach",
"event",
"handler",
"on",
"this",
"field",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/AbstractView.java#L269-L312 |
8,336 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/AbstractView.java | AbstractView.addHandler | private void addHandler(final EventTarget target, final Annotation annotation) throws CoreException {
// Build the auto event handler for this annotation
final AnnotationEventHandler<Event> aeh = new AnnotationEventHandler<>(this.callbackObject, annotation);
for (final EnumEventType eet : (Enu... | java | private void addHandler(final EventTarget target, final Annotation annotation) throws CoreException {
// Build the auto event handler for this annotation
final AnnotationEventHandler<Event> aeh = new AnnotationEventHandler<>(this.callbackObject, annotation);
for (final EnumEventType eet : (Enu... | [
"private",
"void",
"addHandler",
"(",
"final",
"EventTarget",
"target",
",",
"final",
"Annotation",
"annotation",
")",
"throws",
"CoreException",
"{",
"// Build the auto event handler for this annotation",
"final",
"AnnotationEventHandler",
"<",
"Event",
">",
"aeh",
"=",
... | Add an event handler on the given node according to annotation OnXxxxx.
@param target the graphical node, must be not null (is a subtype of EventTarget)
@param annotation the OnXxxx annotation
@throws CoreException if an error occurred while linking the event handler | [
"Add",
"an",
"event",
"handler",
"on",
"the",
"given",
"node",
"according",
"to",
"annotation",
"OnXxxxx",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/AbstractView.java#L322-L343 |
8,337 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/AbstractView.java | AbstractView.addHandler | private void addHandler(final Animation animation, final Annotation annotation) throws CoreException {
// Build the auto event handler for this annotation
final AnnotationEventHandler<ActionEvent> aeh = new AnnotationEventHandler<>(this.callbackObject, annotation);
// Only on event type
... | java | private void addHandler(final Animation animation, final Annotation annotation) throws CoreException {
// Build the auto event handler for this annotation
final AnnotationEventHandler<ActionEvent> aeh = new AnnotationEventHandler<>(this.callbackObject, annotation);
// Only on event type
... | [
"private",
"void",
"addHandler",
"(",
"final",
"Animation",
"animation",
",",
"final",
"Annotation",
"annotation",
")",
"throws",
"CoreException",
"{",
"// Build the auto event handler for this annotation",
"final",
"AnnotationEventHandler",
"<",
"ActionEvent",
">",
"aeh",
... | Add an event handler on the given animation according to annotation OnFinished.
@param animation the animation, must be not null
@param annotation the OnXxxx annotation (only OnFinished is supported)
@throws CoreException if an error occurred while linking the event handler | [
"Add",
"an",
"event",
"handler",
"on",
"the",
"given",
"animation",
"according",
"to",
"annotation",
"OnFinished",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/AbstractView.java#L353-L360 |
8,338 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/AbstractView.java | AbstractView.buildController | @SuppressWarnings("unchecked")
protected C buildController() throws CoreException {
// Build the controller by reflection excluding NullController
return (C) ClassUtility.findAndBuildGenericType(this.getClass(), Controller.class, NullController.class, this);
} | java | @SuppressWarnings("unchecked")
protected C buildController() throws CoreException {
// Build the controller by reflection excluding NullController
return (C) ClassUtility.findAndBuildGenericType(this.getClass(), Controller.class, NullController.class, this);
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"protected",
"C",
"buildController",
"(",
")",
"throws",
"CoreException",
"{",
"// Build the controller by reflection excluding NullController",
"return",
"(",
"C",
")",
"ClassUtility",
".",
"findAndBuildGenericType",
"(",... | Build the view controller.
@throws CoreException if introspection fails | [
"Build",
"the",
"view",
"controller",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/AbstractView.java#L399-L404 |
8,339 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/util/MultiMap.java | MultiMap.add | public boolean add(final K key, final V value) {
if (!this.map.containsKey(key)) {
this.map.put(key, new ArrayList<V>());
}
return this.map.get(key).add(value);
} | java | public boolean add(final K key, final V value) {
if (!this.map.containsKey(key)) {
this.map.put(key, new ArrayList<V>());
}
return this.map.get(key).add(value);
} | [
"public",
"boolean",
"add",
"(",
"final",
"K",
"key",
",",
"final",
"V",
"value",
")",
"{",
"if",
"(",
"!",
"this",
".",
"map",
".",
"containsKey",
"(",
"key",
")",
")",
"{",
"this",
".",
"map",
".",
"put",
"(",
"key",
",",
"new",
"ArrayList",
... | Add a new entry.
@param key the key of the entry
@param value the value of the entry
@return true if the operation has succeeded | [
"Add",
"a",
"new",
"entry",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/util/MultiMap.java#L80-L85 |
8,340 | pmlopes/yoke | framework/src/main/java/com/jetdrone/vertx/yoke/Yoke.java | Yoke.listen | public Yoke listen(final @NotNull HttpServer server) {
server.requestHandler(new Handler<HttpServerRequest>() {
@Override
public void handle(HttpServerRequest req) {
// the context map is shared with all middlewares
final YokeRequest request = requestWrapp... | java | public Yoke listen(final @NotNull HttpServer server) {
server.requestHandler(new Handler<HttpServerRequest>() {
@Override
public void handle(HttpServerRequest req) {
// the context map is shared with all middlewares
final YokeRequest request = requestWrapp... | [
"public",
"Yoke",
"listen",
"(",
"final",
"@",
"NotNull",
"HttpServer",
"server",
")",
"{",
"server",
".",
"requestHandler",
"(",
"new",
"Handler",
"<",
"HttpServerRequest",
">",
"(",
")",
"{",
"@",
"Override",
"public",
"void",
"handle",
"(",
"HttpServerReq... | Starts listening at a already created server.
@param server
@return {Yoke} | [
"Starts",
"listening",
"at",
"a",
"already",
"created",
"server",
"."
] | fe8a64036f09fb745f0644faddd46162d64faf3c | https://github.com/pmlopes/yoke/blob/fe8a64036f09fb745f0644faddd46162d64faf3c/framework/src/main/java/com/jetdrone/vertx/yoke/Yoke.java#L457-L540 |
8,341 | pmlopes/yoke | framework/src/main/java/com/jetdrone/vertx/yoke/Yoke.java | Yoke.deploy | public Yoke deploy(final @NotNull JsonArray config, final Handler<Object> handler) {
if (config.size() == 0) {
if (handler == null) {
return this;
} else {
handler.handle(null);
return this;
}
}
// wait for all... | java | public Yoke deploy(final @NotNull JsonArray config, final Handler<Object> handler) {
if (config.size() == 0) {
if (handler == null) {
return this;
} else {
handler.handle(null);
return this;
}
}
// wait for all... | [
"public",
"Yoke",
"deploy",
"(",
"final",
"@",
"NotNull",
"JsonArray",
"config",
",",
"final",
"Handler",
"<",
"Object",
">",
"handler",
")",
"{",
"if",
"(",
"config",
".",
"size",
"(",
")",
"==",
"0",
")",
"{",
"if",
"(",
"handler",
"==",
"null",
... | Deploys required middleware from a config json element. The handler is only called once all middleware is
deployed or in error. The order of deployment is not guaranteed since all deploy functions are called
concurrently and do not wait for the previous result before deploying the next item.
The current format for the... | [
"Deploys",
"required",
"middleware",
"from",
"a",
"config",
"json",
"element",
".",
"The",
"handler",
"is",
"only",
"called",
"once",
"all",
"middleware",
"is",
"deployed",
"or",
"in",
"error",
".",
"The",
"order",
"of",
"deployment",
"is",
"not",
"guarantee... | fe8a64036f09fb745f0644faddd46162d64faf3c | https://github.com/pmlopes/yoke/blob/fe8a64036f09fb745f0644faddd46162d64faf3c/framework/src/main/java/com/jetdrone/vertx/yoke/Yoke.java#L583-L618 |
8,342 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/link/AbstractReady.java | AbstractReady.getKeyPart | @SuppressWarnings("unchecked")
public <KP extends Object> KP getKeyPart(final Class<KP> keyPartClass) {
return (KP) getListKeyPart().stream()
.filter(kp -> kp != null && keyPartClass.isAssignableFrom(kp.getClass()))
.findFirst()
... | java | @SuppressWarnings("unchecked")
public <KP extends Object> KP getKeyPart(final Class<KP> keyPartClass) {
return (KP) getListKeyPart().stream()
.filter(kp -> kp != null && keyPartClass.isAssignableFrom(kp.getClass()))
.findFirst()
... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"<",
"KP",
"extends",
"Object",
">",
"KP",
"getKeyPart",
"(",
"final",
"Class",
"<",
"KP",
">",
"keyPartClass",
")",
"{",
"return",
"(",
"KP",
")",
"getListKeyPart",
"(",
")",
".",
"stream",
"... | Return the first object assignable from te given class.
@param keyPartClass the class used to search the first instance
@return the first instance found or raise a NoSuchElementException | [
"Return",
"the",
"first",
"object",
"assignable",
"from",
"te",
"given",
"class",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/link/AbstractReady.java#L153-L159 |
8,343 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/AbstractBaseParams.java | AbstractBaseParams.readDouble | protected double readDouble(final String doubleString, final double min, final double max) {
return Math.max(Math.min(Double.parseDouble(doubleString), max), min);
} | java | protected double readDouble(final String doubleString, final double min, final double max) {
return Math.max(Math.min(Double.parseDouble(doubleString), max), min);
} | [
"protected",
"double",
"readDouble",
"(",
"final",
"String",
"doubleString",
",",
"final",
"double",
"min",
",",
"final",
"double",
"max",
")",
"{",
"return",
"Math",
".",
"max",
"(",
"Math",
".",
"min",
"(",
"Double",
".",
"parseDouble",
"(",
"doubleStrin... | Read a double string value.
@param doubleString the double value
@param min the minimum value allowed
@param max the maximum value allowed
@return the value parsed according to its range | [
"Read",
"a",
"double",
"string",
"value",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/AbstractBaseParams.java#L153-L155 |
8,344 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/AbstractBaseParams.java | AbstractBaseParams.readInteger | protected int readInteger(final String intString, final int min, final int max) {
return Math.max(Math.min(Integer.parseInt(intString), max), min);
} | java | protected int readInteger(final String intString, final int min, final int max) {
return Math.max(Math.min(Integer.parseInt(intString), max), min);
} | [
"protected",
"int",
"readInteger",
"(",
"final",
"String",
"intString",
",",
"final",
"int",
"min",
",",
"final",
"int",
"max",
")",
"{",
"return",
"Math",
".",
"max",
"(",
"Math",
".",
"min",
"(",
"Integer",
".",
"parseInt",
"(",
"intString",
")",
","... | Read ab integer string value.
@param intString the integer value
@param min the minimum value allowed
@param max the maximum value allowed
@return the value parsed according to its range | [
"Read",
"ab",
"integer",
"string",
"value",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/AbstractBaseParams.java#L166-L168 |
8,345 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/service/basic/TaskTrackerService.java | TaskTrackerService.trackTask | public void trackTask(final ServiceTaskBase<?> task) {
LOGGER.trace("track a Task");
this.serviceTasks.add(task);
task.setOnCancelled(this.workerHandler);
task.setOnSucceeded(this.workerHandler);
task.setOnFailed(this.workerHandler);
} | java | public void trackTask(final ServiceTaskBase<?> task) {
LOGGER.trace("track a Task");
this.serviceTasks.add(task);
task.setOnCancelled(this.workerHandler);
task.setOnSucceeded(this.workerHandler);
task.setOnFailed(this.workerHandler);
} | [
"public",
"void",
"trackTask",
"(",
"final",
"ServiceTaskBase",
"<",
"?",
">",
"task",
")",
"{",
"LOGGER",
".",
"trace",
"(",
"\"track a Task\"",
")",
";",
"this",
".",
"serviceTasks",
".",
"add",
"(",
"task",
")",
";",
"task",
".",
"setOnCancelled",
"("... | Track a task progression.
@param task the task to track | [
"Track",
"a",
"task",
"progression",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/service/basic/TaskTrackerService.java#L71-L80 |
8,346 | JRebirth/JRebirth | org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/template/AbstractTemplateView.java | AbstractTemplateView.addSubSlide | private void addSubSlide(final Node defaultSubSlide) {
this.subSlides.add(model().getStepPosition(), defaultSubSlide);
this.slideContent.getChildren().add(defaultSubSlide);
StackPane.setAlignment(defaultSubSlide, Pos.CENTER);
} | java | private void addSubSlide(final Node defaultSubSlide) {
this.subSlides.add(model().getStepPosition(), defaultSubSlide);
this.slideContent.getChildren().add(defaultSubSlide);
StackPane.setAlignment(defaultSubSlide, Pos.CENTER);
} | [
"private",
"void",
"addSubSlide",
"(",
"final",
"Node",
"defaultSubSlide",
")",
"{",
"this",
".",
"subSlides",
".",
"add",
"(",
"model",
"(",
")",
".",
"getStepPosition",
"(",
")",
",",
"defaultSubSlide",
")",
";",
"this",
".",
"slideContent",
".",
"getChi... | Add a subslide node.
@param defaultSubSlide the subslide node | [
"Add",
"a",
"subslide",
"node",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/template/AbstractTemplateView.java#L220-L227 |
8,347 | JRebirth/JRebirth | org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/template/AbstractTemplateView.java | AbstractTemplateView.getHeaderPanel | protected Node getHeaderPanel() {
final Pane headerPane = PaneBuilder.create()
.styleClass("header")
.layoutX(0.0)
.layoutY(0.0)
.minWidth(... | java | protected Node getHeaderPanel() {
final Pane headerPane = PaneBuilder.create()
.styleClass("header")
.layoutX(0.0)
.layoutY(0.0)
.minWidth(... | [
"protected",
"Node",
"getHeaderPanel",
"(",
")",
"{",
"final",
"Pane",
"headerPane",
"=",
"PaneBuilder",
".",
"create",
"(",
")",
".",
"styleClass",
"(",
"\"header\"",
")",
".",
"layoutX",
"(",
"0.0",
")",
".",
"layoutY",
"(",
"0.0",
")",
".",
"minWidth"... | Build and return the header panel.
@return the header panel | [
"Build",
"and",
"return",
"the",
"header",
"panel",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/template/AbstractTemplateView.java#L288-L385 |
8,348 | JRebirth/JRebirth | org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/template/AbstractTemplateView.java | AbstractTemplateView.bindNode | protected void bindNode(final Node node) {
node.scaleXProperty().bind(bindWidth());
node.scaleYProperty().bind(bindHeight());
} | java | protected void bindNode(final Node node) {
node.scaleXProperty().bind(bindWidth());
node.scaleYProperty().bind(bindHeight());
} | [
"protected",
"void",
"bindNode",
"(",
"final",
"Node",
"node",
")",
"{",
"node",
".",
"scaleXProperty",
"(",
")",
".",
"bind",
"(",
"bindWidth",
"(",
")",
")",
";",
"node",
".",
"scaleYProperty",
"(",
")",
".",
"bind",
"(",
"bindHeight",
"(",
")",
")... | Bind node's scale properties to stage size.
@param node the bound node | [
"Bind",
"node",
"s",
"scale",
"properties",
"to",
"stage",
"size",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/template/AbstractTemplateView.java#L392-L395 |
8,349 | JRebirth/JRebirth | org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/template/AbstractTemplateView.java | AbstractTemplateView.bindHeight | protected NumberBinding bindHeight() {
return Bindings.divide(model().localFacade().globalFacade().application().stage().heightProperty(), 768);
} | java | protected NumberBinding bindHeight() {
return Bindings.divide(model().localFacade().globalFacade().application().stage().heightProperty(), 768);
} | [
"protected",
"NumberBinding",
"bindHeight",
"(",
")",
"{",
"return",
"Bindings",
".",
"divide",
"(",
"model",
"(",
")",
".",
"localFacade",
"(",
")",
".",
"globalFacade",
"(",
")",
".",
"application",
"(",
")",
".",
"stage",
"(",
")",
".",
"heightPropert... | Returns the height ratio.
@return the height ratio | [
"Returns",
"the",
"height",
"ratio",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/template/AbstractTemplateView.java#L402-L404 |
8,350 | JRebirth/JRebirth | org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/template/AbstractTemplateView.java | AbstractTemplateView.bindWidth | protected NumberBinding bindWidth() {
return Bindings.divide(model().localFacade().globalFacade().application().stage().widthProperty(), 1024);
} | java | protected NumberBinding bindWidth() {
return Bindings.divide(model().localFacade().globalFacade().application().stage().widthProperty(), 1024);
} | [
"protected",
"NumberBinding",
"bindWidth",
"(",
")",
"{",
"return",
"Bindings",
".",
"divide",
"(",
"model",
"(",
")",
".",
"localFacade",
"(",
")",
".",
"globalFacade",
"(",
")",
".",
"application",
"(",
")",
".",
"stage",
"(",
")",
".",
"widthProperty"... | Returns the width ratio.
@return the width ratio | [
"Returns",
"the",
"width",
"ratio",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/template/AbstractTemplateView.java#L411-L413 |
8,351 | JRebirth/JRebirth | org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/template/AbstractTemplateView.java | AbstractTemplateView.getFooterPanel | protected Node getFooterPanel() {
this.pageLabel = LabelBuilder.create()
.text(String.valueOf(model().getSlide().getPage()))
.font(PrezFonts.PAGE.get())
.build();
final AnchorPane ap = AnchorP... | java | protected Node getFooterPanel() {
this.pageLabel = LabelBuilder.create()
.text(String.valueOf(model().getSlide().getPage()))
.font(PrezFonts.PAGE.get())
.build();
final AnchorPane ap = AnchorP... | [
"protected",
"Node",
"getFooterPanel",
"(",
")",
"{",
"this",
".",
"pageLabel",
"=",
"LabelBuilder",
".",
"create",
"(",
")",
".",
"text",
"(",
"String",
".",
"valueOf",
"(",
"model",
"(",
")",
".",
"getSlide",
"(",
")",
".",
"getPage",
"(",
")",
")"... | Build and return the footer panel.
@return the footer panel | [
"Build",
"and",
"return",
"the",
"footer",
"panel",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/template/AbstractTemplateView.java#L427-L449 |
8,352 | JRebirth/JRebirth | org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/template/AbstractTemplateView.java | AbstractTemplateView.buildDefaultContent | protected VBox buildDefaultContent(final SlideContent slideContent) {
final VBox vbox = new VBox();
// vbox.getStyleClass().add("content");
// Link the class style of this slide content
if (model().getSlide().getStyle() != null) {
vbox.getStyleClass().add(model().getSlide()... | java | protected VBox buildDefaultContent(final SlideContent slideContent) {
final VBox vbox = new VBox();
// vbox.getStyleClass().add("content");
// Link the class style of this slide content
if (model().getSlide().getStyle() != null) {
vbox.getStyleClass().add(model().getSlide()... | [
"protected",
"VBox",
"buildDefaultContent",
"(",
"final",
"SlideContent",
"slideContent",
")",
"{",
"final",
"VBox",
"vbox",
"=",
"new",
"VBox",
"(",
")",
";",
"// vbox.getStyleClass().add(\"content\");",
"// Link the class style of this slide content",
"if",
"(",
"model"... | Build the default content slide.
@param slideContent the content of the slide to build
@return the vbox with default content items | [
"Build",
"the",
"default",
"content",
"slide",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/template/AbstractTemplateView.java#L458-L480 |
8,353 | JRebirth/JRebirth | org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/template/AbstractTemplateView.java | AbstractTemplateView.addSlideItem | protected void addSlideItem(final VBox vbox, final SlideItem item) {
Node node = null;
if (item.isLink()) {
final Hyperlink link = HyperlinkBuilder.create()
.opacity(1.0)
.text(item.getVal... | java | protected void addSlideItem(final VBox vbox, final SlideItem item) {
Node node = null;
if (item.isLink()) {
final Hyperlink link = HyperlinkBuilder.create()
.opacity(1.0)
.text(item.getVal... | [
"protected",
"void",
"addSlideItem",
"(",
"final",
"VBox",
"vbox",
",",
"final",
"SlideItem",
"item",
")",
"{",
"Node",
"node",
"=",
"null",
";",
"if",
"(",
"item",
".",
"isLink",
"(",
")",
")",
"{",
"final",
"Hyperlink",
"link",
"=",
"HyperlinkBuilder",... | Add a slide item by managing level.
@param vbox the layout node
@param item the slide item to add | [
"Add",
"a",
"slide",
"item",
"by",
"managing",
"level",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/template/AbstractTemplateView.java#L488-L552 |
8,354 | JRebirth/JRebirth | org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/template/AbstractTemplateView.java | AbstractTemplateView.showSlideStep | public void showSlideStep(final SlideStep slideStep) {
if (this.subSlides.size() >= model().getStepPosition() || this.subSlides.get(model().getStepPosition()) == null) {
addSubSlide(buildDefaultContent(model().getContent(slideStep)));
}
final Node nextSlide = this.subSlides.get(mode... | java | public void showSlideStep(final SlideStep slideStep) {
if (this.subSlides.size() >= model().getStepPosition() || this.subSlides.get(model().getStepPosition()) == null) {
addSubSlide(buildDefaultContent(model().getContent(slideStep)));
}
final Node nextSlide = this.subSlides.get(mode... | [
"public",
"void",
"showSlideStep",
"(",
"final",
"SlideStep",
"slideStep",
")",
"{",
"if",
"(",
"this",
".",
"subSlides",
".",
"size",
"(",
")",
">=",
"model",
"(",
")",
".",
"getStepPosition",
"(",
")",
"||",
"this",
".",
"subSlides",
".",
"get",
"(",... | Show the slide step store which match with XML file.
@param slideStep the slide step to show | [
"Show",
"the",
"slide",
"step",
"store",
"which",
"match",
"with",
"XML",
"file",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/template/AbstractTemplateView.java#L559-L573 |
8,355 | JRebirth/JRebirth | org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/template/AbstractTemplateView.java | AbstractTemplateView.showCustomSlideStep | protected void showCustomSlideStep(final Node node) {
addSubSlide(node);
final Node nextSlide = this.subSlides.get(model().getStepPosition());
if (this.currentSubSlide == null || nextSlide == null) {
// No Animation
this.currentSubSlide = nextSlide;
} else {
... | java | protected void showCustomSlideStep(final Node node) {
addSubSlide(node);
final Node nextSlide = this.subSlides.get(model().getStepPosition());
if (this.currentSubSlide == null || nextSlide == null) {
// No Animation
this.currentSubSlide = nextSlide;
} else {
... | [
"protected",
"void",
"showCustomSlideStep",
"(",
"final",
"Node",
"node",
")",
"{",
"addSubSlide",
"(",
"node",
")",
";",
"final",
"Node",
"nextSlide",
"=",
"this",
".",
"subSlides",
".",
"get",
"(",
"model",
"(",
")",
".",
"getStepPosition",
"(",
")",
"... | Show a programmatic built node as a sub slide.
@param node the node built programmatically | [
"Show",
"a",
"programmatic",
"built",
"node",
"as",
"a",
"sub",
"slide",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/template/AbstractTemplateView.java#L580-L591 |
8,356 | JRebirth/JRebirth | org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/template/AbstractTemplateView.java | AbstractTemplateView.performStepAnimation | private void performStepAnimation(final Node nextSlide) {
// setSlideLocked(true);
this.slideStepAnimation = ParallelTransitionBuilder.create()
.onFinished(new EventHandler<ActionEvent>() {
... | java | private void performStepAnimation(final Node nextSlide) {
// setSlideLocked(true);
this.slideStepAnimation = ParallelTransitionBuilder.create()
.onFinished(new EventHandler<ActionEvent>() {
... | [
"private",
"void",
"performStepAnimation",
"(",
"final",
"Node",
"nextSlide",
")",
"{",
"// setSlideLocked(true);",
"this",
".",
"slideStepAnimation",
"=",
"ParallelTransitionBuilder",
".",
"create",
"(",
")",
".",
"onFinished",
"(",
"new",
"EventHandler",
"<",
"Act... | Create an Launch the animation between two sub slides.
@param nextSlide the next subSlide to show | [
"Create",
"an",
"Launch",
"the",
"animation",
"between",
"two",
"sub",
"slides",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/template/AbstractTemplateView.java#L610-L675 |
8,357 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/facade/JRebirthEventBase.java | JRebirthEventBase.parseString | private void parseString(final String eventSerialized) {
final StringTokenizer st = new StringTokenizer(eventSerialized, ClassUtility.SEPARATOR);
if (st.countTokens() >= 5) {
sequence(Integer.parseInt(st.nextToken()))
.eventType(JRebi... | java | private void parseString(final String eventSerialized) {
final StringTokenizer st = new StringTokenizer(eventSerialized, ClassUtility.SEPARATOR);
if (st.countTokens() >= 5) {
sequence(Integer.parseInt(st.nextToken()))
.eventType(JRebi... | [
"private",
"void",
"parseString",
"(",
"final",
"String",
"eventSerialized",
")",
"{",
"final",
"StringTokenizer",
"st",
"=",
"new",
"StringTokenizer",
"(",
"eventSerialized",
",",
"ClassUtility",
".",
"SEPARATOR",
")",
";",
"if",
"(",
"st",
".",
"countTokens",
... | Parse the serialized string.
@param eventSerialized the serialized string | [
"Parse",
"the",
"serialized",
"string",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/facade/JRebirthEventBase.java#L181-L190 |
8,358 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/color/ColorBuilder.java | ColorBuilder.buildHSBColor | private Color buildHSBColor(final HSBColor hsbColor) {
Color color = null;
if (hsbColor.opacity() >= 1.0) {
color = Color.hsb(hsbColor.hue(), hsbColor.saturation(), hsbColor.brightness());
} else {
color = Color.hsb(hsbColor.hue(), hsbColor.saturation(), hsbColor.bri... | java | private Color buildHSBColor(final HSBColor hsbColor) {
Color color = null;
if (hsbColor.opacity() >= 1.0) {
color = Color.hsb(hsbColor.hue(), hsbColor.saturation(), hsbColor.brightness());
} else {
color = Color.hsb(hsbColor.hue(), hsbColor.saturation(), hsbColor.bri... | [
"private",
"Color",
"buildHSBColor",
"(",
"final",
"HSBColor",
"hsbColor",
")",
"{",
"Color",
"color",
"=",
"null",
";",
"if",
"(",
"hsbColor",
".",
"opacity",
"(",
")",
">=",
"1.0",
")",
"{",
"color",
"=",
"Color",
".",
"hsb",
"(",
"hsbColor",
".",
... | Build an HSB color.
@param hsbColor the hsb color enum
@return the javafx color | [
"Build",
"an",
"HSB",
"color",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/color/ColorBuilder.java#L116-L124 |
8,359 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/color/ColorBuilder.java | ColorBuilder.buildGrayColor | private Color buildGrayColor(final GrayColor gColor) {
Color color = null;
if (gColor.opacity() >= 1.0) {
color = Color.gray(gColor.gray());
} else {
color = Color.gray(gColor.gray(), gColor.opacity());
}
return color;
} | java | private Color buildGrayColor(final GrayColor gColor) {
Color color = null;
if (gColor.opacity() >= 1.0) {
color = Color.gray(gColor.gray());
} else {
color = Color.gray(gColor.gray(), gColor.opacity());
}
return color;
} | [
"private",
"Color",
"buildGrayColor",
"(",
"final",
"GrayColor",
"gColor",
")",
"{",
"Color",
"color",
"=",
"null",
";",
"if",
"(",
"gColor",
".",
"opacity",
"(",
")",
">=",
"1.0",
")",
"{",
"color",
"=",
"Color",
".",
"gray",
"(",
"gColor",
".",
"gr... | Build a Gray color.
@param gColor the gray color enum
@return the javafx color | [
"Build",
"a",
"Gray",
"color",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/color/ColorBuilder.java#L133-L141 |
8,360 | JRebirth/JRebirth | org.jrebirth.af/component/src/main/java/org/jrebirth/af/component/ui/tab/TabbedPaneView.java | TabbedPaneView.buildButtonBar | private Pane buildButtonBar(final boolean isHorizontal) {
if (isHorizontal) {
this.box = new HBox();
this.box.setMaxWidth(Region.USE_COMPUTED_SIZE);
this.box.getStyleClass().add("HorizontalTabbedPane");
} else {
this.box = new VBox();
this.b... | java | private Pane buildButtonBar(final boolean isHorizontal) {
if (isHorizontal) {
this.box = new HBox();
this.box.setMaxWidth(Region.USE_COMPUTED_SIZE);
this.box.getStyleClass().add("HorizontalTabbedPane");
} else {
this.box = new VBox();
this.b... | [
"private",
"Pane",
"buildButtonBar",
"(",
"final",
"boolean",
"isHorizontal",
")",
"{",
"if",
"(",
"isHorizontal",
")",
"{",
"this",
".",
"box",
"=",
"new",
"HBox",
"(",
")",
";",
"this",
".",
"box",
".",
"setMaxWidth",
"(",
"Region",
".",
"USE_COMPUTED_... | Builds the button bar.
@param isHorizontal the is horizontal
@return the pane | [
"Builds",
"the",
"button",
"bar",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/component/src/main/java/org/jrebirth/af/component/ui/tab/TabbedPaneView.java#L151-L186 |
8,361 | JRebirth/JRebirth | org.jrebirth.af/component/src/main/java/org/jrebirth/af/component/ui/tab/TabbedPaneView.java | TabbedPaneView.addTab | public SequentialTransition addTab(int idx, final Dockable tab) {
final SequentialTransition seq = new SequentialTransition();
final ToggleButton b = new ToggleButton(tab.name());// , new ImageView(model().getBehavior(DockableBehavior.class).modelIcon()));
b.setToggleGroup(this.group);
... | java | public SequentialTransition addTab(int idx, final Dockable tab) {
final SequentialTransition seq = new SequentialTransition();
final ToggleButton b = new ToggleButton(tab.name());// , new ImageView(model().getBehavior(DockableBehavior.class).modelIcon()));
b.setToggleGroup(this.group);
... | [
"public",
"SequentialTransition",
"addTab",
"(",
"int",
"idx",
",",
"final",
"Dockable",
"tab",
")",
"{",
"final",
"SequentialTransition",
"seq",
"=",
"new",
"SequentialTransition",
"(",
")",
";",
"final",
"ToggleButton",
"b",
"=",
"new",
"ToggleButton",
"(",
... | Adds the tab.
@param idx the idx
@param tab the tab | [
"Adds",
"the",
"tab",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/component/src/main/java/org/jrebirth/af/component/ui/tab/TabbedPaneView.java#L194-L234 |
8,362 | JRebirth/JRebirth | org.jrebirth.af/component/src/main/java/org/jrebirth/af/component/ui/tab/TabbedPaneView.java | TabbedPaneView.selectTab | void selectTab(final Dockable t) {
// Remove all previously displayed children
this.stackPane.getChildren().clear();
//
this.stackPane.getChildren().add(model().getModel(t.modelKey()).node());
} | java | void selectTab(final Dockable t) {
// Remove all previously displayed children
this.stackPane.getChildren().clear();
//
this.stackPane.getChildren().add(model().getModel(t.modelKey()).node());
} | [
"void",
"selectTab",
"(",
"final",
"Dockable",
"t",
")",
"{",
"// Remove all previously displayed children",
"this",
".",
"stackPane",
".",
"getChildren",
"(",
")",
".",
"clear",
"(",
")",
";",
"//",
"this",
".",
"stackPane",
".",
"getChildren",
"(",
")",
".... | Select tab.
@param t the t | [
"Select",
"tab",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/component/src/main/java/org/jrebirth/af/component/ui/tab/TabbedPaneView.java#L258-L263 |
8,363 | JRebirth/JRebirth | org.jrebirth.af/component/src/main/java/org/jrebirth/af/component/ui/tab/TabbedPaneView.java | TabbedPaneView.removeMarker | public int removeMarker() {
System.out.println("Remove Marker");
final int idx = getBox().getChildren().indexOf(this.marker);
getBox().getChildren().remove(this.marker);
return idx;
} | java | public int removeMarker() {
System.out.println("Remove Marker");
final int idx = getBox().getChildren().indexOf(this.marker);
getBox().getChildren().remove(this.marker);
return idx;
} | [
"public",
"int",
"removeMarker",
"(",
")",
"{",
"System",
".",
"out",
".",
"println",
"(",
"\"Remove Marker\"",
")",
";",
"final",
"int",
"idx",
"=",
"getBox",
"(",
")",
".",
"getChildren",
"(",
")",
".",
"indexOf",
"(",
"this",
".",
"marker",
")",
"... | Removes the marker.
@return the int | [
"Removes",
"the",
"marker",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/component/src/main/java/org/jrebirth/af/component/ui/tab/TabbedPaneView.java#L340-L345 |
8,364 | JRebirth/JRebirth | org.jrebirth.af/showcase/analyzer/src/main/java/org/jrebirth/af/showcase/analyzer/command/ProcessEventCommand.java | ProcessEventCommand.createBallModel | private void createBallModel(final JRebirthEvent event) {
switch (event.eventType()) {
case CREATE_APPLICATION:
case CREATE_NOTIFIER:
case CREATE_GLOBAL_FACADE:
case CREATE_COMMAND_FACADE:
case CREATE_SERVICE_FACADE:
case CREATE_UI_F... | java | private void createBallModel(final JRebirthEvent event) {
switch (event.eventType()) {
case CREATE_APPLICATION:
case CREATE_NOTIFIER:
case CREATE_GLOBAL_FACADE:
case CREATE_COMMAND_FACADE:
case CREATE_SERVICE_FACADE:
case CREATE_UI_F... | [
"private",
"void",
"createBallModel",
"(",
"final",
"JRebirthEvent",
"event",
")",
"{",
"switch",
"(",
"event",
".",
"eventType",
"(",
")",
")",
"{",
"case",
"CREATE_APPLICATION",
":",
"case",
"CREATE_NOTIFIER",
":",
"case",
"CREATE_GLOBAL_FACADE",
":",
"case",
... | Create a ballModel instance.
@param event the create event | [
"Create",
"a",
"ballModel",
"instance",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/showcase/analyzer/src/main/java/org/jrebirth/af/showcase/analyzer/command/ProcessEventCommand.java#L55-L75 |
8,365 | JRebirth/JRebirth | org.jrebirth.af/showcase/analyzer/src/main/java/org/jrebirth/af/showcase/analyzer/command/ProcessEventCommand.java | ProcessEventCommand.accessBallModel | private void accessBallModel(final JRebirthEvent event) {
switch (event.eventType()) {
case ACCESS_COMMAND:
case ACCESS_CONTROLLER:
case ACCESS_MODEL:
case ACCESS_SERVICE:
case ACCESS_VIEW:
// final BallModel ballModel = getModel... | java | private void accessBallModel(final JRebirthEvent event) {
switch (event.eventType()) {
case ACCESS_COMMAND:
case ACCESS_CONTROLLER:
case ACCESS_MODEL:
case ACCESS_SERVICE:
case ACCESS_VIEW:
// final BallModel ballModel = getModel... | [
"private",
"void",
"accessBallModel",
"(",
"final",
"JRebirthEvent",
"event",
")",
"{",
"switch",
"(",
"event",
".",
"eventType",
"(",
")",
")",
"{",
"case",
"ACCESS_COMMAND",
":",
"case",
"ACCESS_CONTROLLER",
":",
"case",
"ACCESS_MODEL",
":",
"case",
"ACCESS_... | Access to a ballModel instance.
@param event the access event | [
"Access",
"to",
"a",
"ballModel",
"instance",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/showcase/analyzer/src/main/java/org/jrebirth/af/showcase/analyzer/command/ProcessEventCommand.java#L82-L94 |
8,366 | JRebirth/JRebirth | org.jrebirth.af/showcase/analyzer/src/main/java/org/jrebirth/af/showcase/analyzer/command/ProcessEventCommand.java | ProcessEventCommand.destroyBallModel | private void destroyBallModel(final JRebirthEvent event) {
switch (event.eventType()) {
case DESTROY_COMMAND:
case DESTROY_SERVICE:
case DESTROY_MODEL:
case DESTROY_VIEW:
case DESTROY_CONTROLLER:
// final BallModel ballModel = ge... | java | private void destroyBallModel(final JRebirthEvent event) {
switch (event.eventType()) {
case DESTROY_COMMAND:
case DESTROY_SERVICE:
case DESTROY_MODEL:
case DESTROY_VIEW:
case DESTROY_CONTROLLER:
// final BallModel ballModel = ge... | [
"private",
"void",
"destroyBallModel",
"(",
"final",
"JRebirthEvent",
"event",
")",
"{",
"switch",
"(",
"event",
".",
"eventType",
"(",
")",
")",
"{",
"case",
"DESTROY_COMMAND",
":",
"case",
"DESTROY_SERVICE",
":",
"case",
"DESTROY_MODEL",
":",
"case",
"DESTRO... | Destroy a ball model.
@param event the destroy event | [
"Destroy",
"a",
"ball",
"model",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/showcase/analyzer/src/main/java/org/jrebirth/af/showcase/analyzer/command/ProcessEventCommand.java#L101-L115 |
8,367 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/key/MultitonKey.java | MultitonKey.buildObjectKey | private String buildObjectKey(final Object object) {
String objectKey = null;
final Class<?> objectClass = object.getClass();
final KeyGenerator typeGenerator = objectClass.getAnnotation(KeyGenerator.class);
if (typeGenerator == null) {
objectKey = generateAggregated... | java | private String buildObjectKey(final Object object) {
String objectKey = null;
final Class<?> objectClass = object.getClass();
final KeyGenerator typeGenerator = objectClass.getAnnotation(KeyGenerator.class);
if (typeGenerator == null) {
objectKey = generateAggregated... | [
"private",
"String",
"buildObjectKey",
"(",
"final",
"Object",
"object",
")",
"{",
"String",
"objectKey",
"=",
"null",
";",
"final",
"Class",
"<",
"?",
">",
"objectClass",
"=",
"object",
".",
"getClass",
"(",
")",
";",
"final",
"KeyGenerator",
"typeGenerator... | Generate the string key for an object.
@param object the object which is part of the global key
@return the unique string for this object | [
"Generate",
"the",
"string",
"key",
"for",
"an",
"object",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/key/MultitonKey.java#L93-L111 |
8,368 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/key/MultitonKey.java | MultitonKey.generateTypeKey | private String generateTypeKey(final Object object, final KeyGenerator typeGenerator) {
String objectKey = null;
Method method = null;
try {
method = object.getClass().getMethod(typeGenerator.value());
objectKey = (String) method.invoke(object);
} catch (fin... | java | private String generateTypeKey(final Object object, final KeyGenerator typeGenerator) {
String objectKey = null;
Method method = null;
try {
method = object.getClass().getMethod(typeGenerator.value());
objectKey = (String) method.invoke(object);
} catch (fin... | [
"private",
"String",
"generateTypeKey",
"(",
"final",
"Object",
"object",
",",
"final",
"KeyGenerator",
"typeGenerator",
")",
"{",
"String",
"objectKey",
"=",
"null",
";",
"Method",
"method",
"=",
"null",
";",
"try",
"{",
"method",
"=",
"object",
".",
"getCl... | Generate Type key by using the class-level annotation.
@param object the source object
@param typeGenerator the annotation that expressed how generate the string unique key
@return the unique key or null if an error occurred | [
"Generate",
"Type",
"key",
"by",
"using",
"the",
"class",
"-",
"level",
"annotation",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/key/MultitonKey.java#L121-L136 |
8,369 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/key/MultitonKey.java | MultitonKey.generateAggregatedKey | private String generateAggregatedKey(final Object object) {
// Store the aggregated key
final StringBuilder sb = new StringBuilder();
KeyGenerator methodGenerator;
// Search for method annotation
for (final Method m : object.getClass().getMethods()) {
methodGe... | java | private String generateAggregatedKey(final Object object) {
// Store the aggregated key
final StringBuilder sb = new StringBuilder();
KeyGenerator methodGenerator;
// Search for method annotation
for (final Method m : object.getClass().getMethods()) {
methodGe... | [
"private",
"String",
"generateAggregatedKey",
"(",
"final",
"Object",
"object",
")",
"{",
"// Store the aggregated key\r",
"final",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"KeyGenerator",
"methodGenerator",
";",
"// Search for method annotation\... | Generate unique key by using the method-level annotations.
@param object the source object
@return the unique key or null if an error occurred or no method annotation was found | [
"Generate",
"unique",
"key",
"by",
"using",
"the",
"method",
"-",
"level",
"annotations",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/key/MultitonKey.java#L145-L172 |
8,370 | JRebirth/JRebirth | org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/image/ImageSlideModel.java | ImageSlideModel.getTitle | public String getTitle() {
return getSlide().getContent() == null || getSlide().getContent().isEmpty() || getSlide().getContent().get(0).getTitle() == null ? null
: getSlide().getContent().get(0).getTitle().replaceAll("\\\\n", "\n");
} | java | public String getTitle() {
return getSlide().getContent() == null || getSlide().getContent().isEmpty() || getSlide().getContent().get(0).getTitle() == null ? null
: getSlide().getContent().get(0).getTitle().replaceAll("\\\\n", "\n");
} | [
"public",
"String",
"getTitle",
"(",
")",
"{",
"return",
"getSlide",
"(",
")",
".",
"getContent",
"(",
")",
"==",
"null",
"||",
"getSlide",
"(",
")",
".",
"getContent",
"(",
")",
".",
"isEmpty",
"(",
")",
"||",
"getSlide",
"(",
")",
".",
"getContent"... | Return the splash title.
@return the title | [
"Return",
"the",
"splash",
"title",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/image/ImageSlideModel.java#L52-L55 |
8,371 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/exception/ServiceException.java | ServiceException.getExplanation | public String getExplanation() {
final StringBuilder sb = new StringBuilder();
if (getMessage() != null) {
sb.append(getMessage());
}
if (getCause() != null) {
sb.append(getCause().getClass().getSimpleName());
}
return sb.toString();
... | java | public String getExplanation() {
final StringBuilder sb = new StringBuilder();
if (getMessage() != null) {
sb.append(getMessage());
}
if (getCause() != null) {
sb.append(getCause().getClass().getSimpleName());
}
return sb.toString();
... | [
"public",
"String",
"getExplanation",
"(",
")",
"{",
"final",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"if",
"(",
"getMessage",
"(",
")",
"!=",
"null",
")",
"{",
"sb",
".",
"append",
"(",
"getMessage",
"(",
")",
")",
";",
"}... | Return the explanation of the exception.
@return the exception explanation | [
"Return",
"the",
"explanation",
"of",
"the",
"exception",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/exception/ServiceException.java#L68-L78 |
8,372 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/fxml/AbstractFXMLObjectModel.java | AbstractFXMLObjectModel.fxmlPreInitialize | protected void fxmlPreInitialize() {
// Define fxml path and resource bundle path according to key parts provided
// If an FXMLItem is provided, simply map it to the internal item handle
if (!getListKeyPart().isEmpty() && getListKeyPart().get(0) instanceof FXMLItem) {
this.fxmlIte... | java | protected void fxmlPreInitialize() {
// Define fxml path and resource bundle path according to key parts provided
// If an FXMLItem is provided, simply map it to the internal item handle
if (!getListKeyPart().isEmpty() && getListKeyPart().get(0) instanceof FXMLItem) {
this.fxmlIte... | [
"protected",
"void",
"fxmlPreInitialize",
"(",
")",
"{",
"// Define fxml path and resource bundle path according to key parts provided",
"// If an FXMLItem is provided, simply map it to the internal item handle",
"if",
"(",
"!",
"getListKeyPart",
"(",
")",
".",
"isEmpty",
"(",
")",... | Pre init. | [
"Pre",
"init",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/fxml/AbstractFXMLObjectModel.java#L125-L162 |
8,373 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/AbstractBaseModel.java | AbstractBaseModel.attachParentListener | protected void attachParentListener() {
final AutoRelease ar = ClassUtility.getLastClassAnnotation(this.getClass(), AutoRelease.class);
// Only manage automatic release when the annotation exists with true value
if (ar != null && ar.value() && node() != null) { // TODO check rootnode null when... | java | protected void attachParentListener() {
final AutoRelease ar = ClassUtility.getLastClassAnnotation(this.getClass(), AutoRelease.class);
// Only manage automatic release when the annotation exists with true value
if (ar != null && ar.value() && node() != null) { // TODO check rootnode null when... | [
"protected",
"void",
"attachParentListener",
"(",
")",
"{",
"final",
"AutoRelease",
"ar",
"=",
"ClassUtility",
".",
"getLastClassAnnotation",
"(",
"this",
".",
"getClass",
"(",
")",
",",
"AutoRelease",
".",
"class",
")",
";",
"// Only manage automatic release when t... | Attach a custom listener that will release the mode when the rootNode is removed from its parent. | [
"Attach",
"a",
"custom",
"listener",
"that",
"will",
"release",
"the",
"mode",
"when",
"the",
"rootNode",
"is",
"removed",
"from",
"its",
"parent",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/AbstractBaseModel.java#L230-L254 |
8,374 | inloop/easygcm | easygcm-lib/src/main/java/eu/inloop/easygcm/EasyInstanceIDListenerService.java | EasyInstanceIDListenerService.onTokenRefresh | @Override
public void onTokenRefresh() {
EasyGcm.Logger.d("Received token refresh broadcast");
EasyGcm.removeRegistrationId(getApplicationContext());
if (GcmUtils.checkCanAndShouldRegister(getApplicationContext())) {
startService(GcmRegistrationService.createGcmRegistrationInte... | java | @Override
public void onTokenRefresh() {
EasyGcm.Logger.d("Received token refresh broadcast");
EasyGcm.removeRegistrationId(getApplicationContext());
if (GcmUtils.checkCanAndShouldRegister(getApplicationContext())) {
startService(GcmRegistrationService.createGcmRegistrationInte... | [
"@",
"Override",
"public",
"void",
"onTokenRefresh",
"(",
")",
"{",
"EasyGcm",
".",
"Logger",
".",
"d",
"(",
"\"Received token refresh broadcast\"",
")",
";",
"EasyGcm",
".",
"removeRegistrationId",
"(",
"getApplicationContext",
"(",
")",
")",
";",
"if",
"(",
... | Called if InstanceID token is updated. This may occur if the security of
the previous token had been compromised. This call is initiated by the
InstanceID provider. | [
"Called",
"if",
"InstanceID",
"token",
"is",
"updated",
".",
"This",
"may",
"occur",
"if",
"the",
"security",
"of",
"the",
"previous",
"token",
"had",
"been",
"compromised",
".",
"This",
"call",
"is",
"initiated",
"by",
"the",
"InstanceID",
"provider",
"."
] | d06bbff11e52b956c3a7b1a2dc4f9799f20cf2c6 | https://github.com/inloop/easygcm/blob/d06bbff11e52b956c3a7b1a2dc4f9799f20cf2c6/easygcm-lib/src/main/java/eu/inloop/easygcm/EasyInstanceIDListenerService.java#L30-L39 |
8,375 | amigold/FunDapter | library/src/com/ami/fundapter/BindDictionary.java | BindDictionary.addBaseField | public BaseField<T> addBaseField(int viewResId) {
BaseField<T> field = new BaseField<T>(viewResId);
mBaseFields.add(field);
return field;
} | java | public BaseField<T> addBaseField(int viewResId) {
BaseField<T> field = new BaseField<T>(viewResId);
mBaseFields.add(field);
return field;
} | [
"public",
"BaseField",
"<",
"T",
">",
"addBaseField",
"(",
"int",
"viewResId",
")",
"{",
"BaseField",
"<",
"T",
">",
"field",
"=",
"new",
"BaseField",
"<",
"T",
">",
"(",
"viewResId",
")",
";",
"mBaseFields",
".",
"add",
"(",
"field",
")",
";",
"retu... | Base field methods | [
"Base",
"field",
"methods"
] | fb33241f265901d73276608689077d4310278eaf | https://github.com/amigold/FunDapter/blob/fb33241f265901d73276608689077d4310278eaf/library/src/com/ami/fundapter/BindDictionary.java#L135-L142 |
8,376 | amigold/FunDapter | library/src/com/ami/fundapter/BindDictionary.java | BindDictionary.addCheckableField | public CheckableField<T> addCheckableField(int viewResId,
BooleanExtractor<T> isCheckedExtractor) {
CheckableField<T> field = new CheckableField<T>(viewResId, isCheckedExtractor);
mCheckableFields.add(field);
return field;
} | java | public CheckableField<T> addCheckableField(int viewResId,
BooleanExtractor<T> isCheckedExtractor) {
CheckableField<T> field = new CheckableField<T>(viewResId, isCheckedExtractor);
mCheckableFields.add(field);
return field;
} | [
"public",
"CheckableField",
"<",
"T",
">",
"addCheckableField",
"(",
"int",
"viewResId",
",",
"BooleanExtractor",
"<",
"T",
">",
"isCheckedExtractor",
")",
"{",
"CheckableField",
"<",
"T",
">",
"field",
"=",
"new",
"CheckableField",
"<",
"T",
">",
"(",
"view... | Checkable field methods | [
"Checkable",
"field",
"methods"
] | fb33241f265901d73276608689077d4310278eaf | https://github.com/amigold/FunDapter/blob/fb33241f265901d73276608689077d4310278eaf/library/src/com/ami/fundapter/BindDictionary.java#L153-L161 |
8,377 | amigold/FunDapter | library/src/com/ami/fundapter/BindDictionary.java | BindDictionary.addStaticImageField | public StaticImageField<T> addStaticImageField(int viewResId,
StaticImageLoader<T> staticImageLoader) {
StaticImageField<T> field = new StaticImageField<T>(viewResId, staticImageLoader);
mStaticImageFields.add(field);
return field;
} | java | public StaticImageField<T> addStaticImageField(int viewResId,
StaticImageLoader<T> staticImageLoader) {
StaticImageField<T> field = new StaticImageField<T>(viewResId, staticImageLoader);
mStaticImageFields.add(field);
return field;
} | [
"public",
"StaticImageField",
"<",
"T",
">",
"addStaticImageField",
"(",
"int",
"viewResId",
",",
"StaticImageLoader",
"<",
"T",
">",
"staticImageLoader",
")",
"{",
"StaticImageField",
"<",
"T",
">",
"field",
"=",
"new",
"StaticImageField",
"<",
"T",
">",
"(",... | static image field methods | [
"static",
"image",
"field",
"methods"
] | fb33241f265901d73276608689077d4310278eaf | https://github.com/amigold/FunDapter/blob/fb33241f265901d73276608689077d4310278eaf/library/src/com/ami/fundapter/BindDictionary.java#L172-L180 |
8,378 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/i18n/MessageBuilder.java | MessageBuilder.readPropertiesFile | private void readPropertiesFile(final String rbFilename) {
final File rbFile = new File(rbFilename);
final String rbName = rbFile.getName().substring(0, rbFile.getName().lastIndexOf(".properties"));
if (rbName == null || rbName.isEmpty()) {
LOGGER.error(JRebirthMarkers.MESS... | java | private void readPropertiesFile(final String rbFilename) {
final File rbFile = new File(rbFilename);
final String rbName = rbFile.getName().substring(0, rbFile.getName().lastIndexOf(".properties"));
if (rbName == null || rbName.isEmpty()) {
LOGGER.error(JRebirthMarkers.MESS... | [
"private",
"void",
"readPropertiesFile",
"(",
"final",
"String",
"rbFilename",
")",
"{",
"final",
"File",
"rbFile",
"=",
"new",
"File",
"(",
"rbFilename",
")",
";",
"final",
"String",
"rbName",
"=",
"rbFile",
".",
"getName",
"(",
")",
".",
"substring",
"("... | Read a customized Message file to load all translated messages.
@param rbFilename the resource bundle file to load | [
"Read",
"a",
"customized",
"Message",
"file",
"to",
"load",
"all",
"translated",
"messages",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/i18n/MessageBuilder.java#L120-L137 |
8,379 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/i18n/MessageBuilder.java | MessageBuilder.findMessage | private String findMessage(final String messageKey) {
String message = null;
try {
if (!this.resourceBundles.isEmpty()) {
for (int i = this.resourceBundles.size() - 1; i >= 0 && message == null; i--) {
if (this.resourceBundles.get(i).containsKey(m... | java | private String findMessage(final String messageKey) {
String message = null;
try {
if (!this.resourceBundles.isEmpty()) {
for (int i = this.resourceBundles.size() - 1; i >= 0 && message == null; i--) {
if (this.resourceBundles.get(i).containsKey(m... | [
"private",
"String",
"findMessage",
"(",
"final",
"String",
"messageKey",
")",
"{",
"String",
"message",
"=",
"null",
";",
"try",
"{",
"if",
"(",
"!",
"this",
".",
"resourceBundles",
".",
"isEmpty",
"(",
")",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"t... | Retrieved the message mapped with the given key.
Perform the search by iterating over all resource bundles available in reverse order.
@param messageKey the key of the message to translate
@return the translated message or null | [
"Retrieved",
"the",
"message",
"mapped",
"with",
"the",
"given",
"key",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/resource/i18n/MessageBuilder.java#L193-L210 |
8,380 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/util/ObjectUtility.java | ObjectUtility.equalsOrBothNull | public static boolean equalsOrBothNull(final Object object1, final Object object2) {
return object1 == null && object2 == null || object1 != null && object1.equals(object2);
} | java | public static boolean equalsOrBothNull(final Object object1, final Object object2) {
return object1 == null && object2 == null || object1 != null && object1.equals(object2);
} | [
"public",
"static",
"boolean",
"equalsOrBothNull",
"(",
"final",
"Object",
"object1",
",",
"final",
"Object",
"object2",
")",
"{",
"return",
"object1",
"==",
"null",
"&&",
"object2",
"==",
"null",
"||",
"object1",
"!=",
"null",
"&&",
"object1",
".",
"equals"... | Return true if the object are equals or both null.
@param object1 first object to compare
@param object2 second object to compare
@return true if the object are equals or both null | [
"Return",
"true",
"if",
"the",
"object",
"are",
"equals",
"or",
"both",
"null",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/util/ObjectUtility.java#L49-L51 |
8,381 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/util/ObjectUtility.java | ObjectUtility.lowerFirstChar | public static String lowerFirstChar(final String upperCasedString) {
return upperCasedString.substring(0, 1).toLowerCase(Locale.getDefault()) + upperCasedString.substring(1);
} | java | public static String lowerFirstChar(final String upperCasedString) {
return upperCasedString.substring(0, 1).toLowerCase(Locale.getDefault()) + upperCasedString.substring(1);
} | [
"public",
"static",
"String",
"lowerFirstChar",
"(",
"final",
"String",
"upperCasedString",
")",
"{",
"return",
"upperCasedString",
".",
"substring",
"(",
"0",
",",
"1",
")",
".",
"toLowerCase",
"(",
"Locale",
".",
"getDefault",
"(",
")",
")",
"+",
"upperCas... | Lower case te first char of a string.
@param upperCasedString the string to modify
@return a new string with a first character lower cased | [
"Lower",
"case",
"te",
"first",
"char",
"of",
"a",
"string",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/util/ObjectUtility.java#L72-L74 |
8,382 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/util/ObjectUtility.java | ObjectUtility.checkAllMethodReturnTrue | public static boolean checkAllMethodReturnTrue(final Object instance, final List<Method> methods) {
boolean res = true;
if (!methods.isEmpty()) {
for (final Method method : methods) {
Object returnValue;
try {
returnValue = method.i... | java | public static boolean checkAllMethodReturnTrue(final Object instance, final List<Method> methods) {
boolean res = true;
if (!methods.isEmpty()) {
for (final Method method : methods) {
Object returnValue;
try {
returnValue = method.i... | [
"public",
"static",
"boolean",
"checkAllMethodReturnTrue",
"(",
"final",
"Object",
"instance",
",",
"final",
"List",
"<",
"Method",
">",
"methods",
")",
"{",
"boolean",
"res",
"=",
"true",
";",
"if",
"(",
"!",
"methods",
".",
"isEmpty",
"(",
")",
")",
"{... | Check if all given methods return true or if the list is empty.
@param instance the context object
@param methods the list of method to check
@return true if all method return true or if the list is empty | [
"Check",
"if",
"all",
"given",
"methods",
"return",
"true",
"or",
"if",
"the",
"list",
"is",
"empty",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/util/ObjectUtility.java#L95-L110 |
8,383 | JRebirth/JRebirth | org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/stack/SlideStackModel.java | SlideStackModel.buildSlideTransition | private ParallelTransition buildSlideTransition(final boolean isReverse, final SlideModel<SlideStep> previousSlideModel, final SlideModel<SlideStep> selectedSlideModel) {
final ParallelTransition slideAnimation = ParallelTransitionBuilder.create().build();
if (previousSlideModel != null) {
... | java | private ParallelTransition buildSlideTransition(final boolean isReverse, final SlideModel<SlideStep> previousSlideModel, final SlideModel<SlideStep> selectedSlideModel) {
final ParallelTransition slideAnimation = ParallelTransitionBuilder.create().build();
if (previousSlideModel != null) {
... | [
"private",
"ParallelTransition",
"buildSlideTransition",
"(",
"final",
"boolean",
"isReverse",
",",
"final",
"SlideModel",
"<",
"SlideStep",
">",
"previousSlideModel",
",",
"final",
"SlideModel",
"<",
"SlideStep",
">",
"selectedSlideModel",
")",
"{",
"final",
"Paralle... | Get the animation to use between slides.
@param isReverse true for reverse mode
@param previousSlideModel the previous slide model
@param selectedSlideModel the current slide model
@return the animation to show | [
"Get",
"the",
"animation",
"to",
"use",
"between",
"slides",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/stack/SlideStackModel.java#L210-L258 |
8,384 | JRebirth/JRebirth | org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/stack/SlideStackModel.java | SlideStackModel.next | public void next(final boolean skipSlideStep) {
synchronized (this) {
// Try to display the next slide step first
// If no slide step is remaining, display the next slide
if (skipSlideStep || this.selectedSlideModel.nextStep() && this.slidePosition < getPresentationService().... | java | public void next(final boolean skipSlideStep) {
synchronized (this) {
// Try to display the next slide step first
// If no slide step is remaining, display the next slide
if (skipSlideStep || this.selectedSlideModel.nextStep() && this.slidePosition < getPresentationService().... | [
"public",
"void",
"next",
"(",
"final",
"boolean",
"skipSlideStep",
")",
"{",
"synchronized",
"(",
"this",
")",
"{",
"// Try to display the next slide step first",
"// If no slide step is remaining, display the next slide",
"if",
"(",
"skipSlideStep",
"||",
"this",
".",
"... | Got to next slide. | [
"Got",
"to",
"next",
"slide",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/stack/SlideStackModel.java#L296-L305 |
8,385 | JRebirth/JRebirth | org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/stack/SlideStackModel.java | SlideStackModel.previous | public void previous(final boolean skipSlideStep) {
synchronized (this) {
// Try to display the previous slide step first
// If no slide step is remaining, display the previous slide
if (skipSlideStep || this.selectedSlideModel.previousStep() && this.slidePosition > 0) {
... | java | public void previous(final boolean skipSlideStep) {
synchronized (this) {
// Try to display the previous slide step first
// If no slide step is remaining, display the previous slide
if (skipSlideStep || this.selectedSlideModel.previousStep() && this.slidePosition > 0) {
... | [
"public",
"void",
"previous",
"(",
"final",
"boolean",
"skipSlideStep",
")",
"{",
"synchronized",
"(",
"this",
")",
"{",
"// Try to display the previous slide step first",
"// If no slide step is remaining, display the previous slide",
"if",
"(",
"skipSlideStep",
"||",
"this"... | Go to previous slide. | [
"Go",
"to",
"previous",
"slide",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/stack/SlideStackModel.java#L310-L319 |
8,386 | JRebirth/JRebirth | org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/stack/SlideStackModel.java | SlideStackModel.showSlideMenu | public void showSlideMenu() {
synchronized (this) {
if (!this.menuShown.getAndSet(true)) {
final SlideMenuModel smm = getModel(Key.create(SlideMenuModel.class, this.selectedSlide));
StackPane.setAlignment(smm.node(), Pos.CENTER);
view().node().getChil... | java | public void showSlideMenu() {
synchronized (this) {
if (!this.menuShown.getAndSet(true)) {
final SlideMenuModel smm = getModel(Key.create(SlideMenuModel.class, this.selectedSlide));
StackPane.setAlignment(smm.node(), Pos.CENTER);
view().node().getChil... | [
"public",
"void",
"showSlideMenu",
"(",
")",
"{",
"synchronized",
"(",
"this",
")",
"{",
"if",
"(",
"!",
"this",
".",
"menuShown",
".",
"getAndSet",
"(",
"true",
")",
")",
"{",
"final",
"SlideMenuModel",
"smm",
"=",
"getModel",
"(",
"Key",
".",
"create... | Display the slide menu to navigate. | [
"Display",
"the",
"slide",
"menu",
"to",
"navigate",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/presentation/src/main/java/org/jrebirth/af/presentation/ui/stack/SlideStackModel.java#L329-L344 |
8,387 | pmlopes/yoke | framework/src/main/java/com/jetdrone/vertx/yoke/core/impl/DefaultRequestWrapper.java | DefaultRequestWrapper.wrap | @Override
public YokeRequest wrap(HttpServerRequest request, Context context, Map<String, Engine> engines, SessionStore store) {
return new YokeRequest(request, new YokeResponse(request.response(), context, engines), context, store);
} | java | @Override
public YokeRequest wrap(HttpServerRequest request, Context context, Map<String, Engine> engines, SessionStore store) {
return new YokeRequest(request, new YokeResponse(request.response(), context, engines), context, store);
} | [
"@",
"Override",
"public",
"YokeRequest",
"wrap",
"(",
"HttpServerRequest",
"request",
",",
"Context",
"context",
",",
"Map",
"<",
"String",
",",
"Engine",
">",
"engines",
",",
"SessionStore",
"store",
")",
"{",
"return",
"new",
"YokeRequest",
"(",
"request",
... | Default implementation of the request wrapper | [
"Default",
"implementation",
"of",
"the",
"request",
"wrapper"
] | fe8a64036f09fb745f0644faddd46162d64faf3c | https://github.com/pmlopes/yoke/blob/fe8a64036f09fb745f0644faddd46162d64faf3c/framework/src/main/java/com/jetdrone/vertx/yoke/core/impl/DefaultRequestWrapper.java#L18-L21 |
8,388 | JRebirth/JRebirth | org.jrebirth.af/showcase/analyzer/src/main/java/org/jrebirth/af/showcase/analyzer/service/impl/LoadEdtFileServiceImpl.java | LoadEdtFileServiceImpl.addEvent | private void addEvent(final List<JRebirthEvent> eventList, final String strLine) {
eventList.add(new JRebirthEventBase(strLine));
} | java | private void addEvent(final List<JRebirthEvent> eventList, final String strLine) {
eventList.add(new JRebirthEventBase(strLine));
} | [
"private",
"void",
"addEvent",
"(",
"final",
"List",
"<",
"JRebirthEvent",
">",
"eventList",
",",
"final",
"String",
"strLine",
")",
"{",
"eventList",
".",
"add",
"(",
"new",
"JRebirthEventBase",
"(",
"strLine",
")",
")",
";",
"}"
] | Add an event to the event list.
@param eventList the list of events
@param strLine the string to use | [
"Add",
"an",
"event",
"to",
"the",
"event",
"list",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/showcase/analyzer/src/main/java/org/jrebirth/af/showcase/analyzer/service/impl/LoadEdtFileServiceImpl.java#L108-L110 |
8,389 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/command/multi/AbstractMultiCommand.java | AbstractMultiCommand.initSequential | private void initSequential(final Boolean sequential) {
// Try to retrieve the Sequential annotation at class level within class hierarchy
final Sequential seq = ClassUtility.getLastClassAnnotation(this.getClass(), Sequential.class);
// First try to get the annotation value (if present
... | java | private void initSequential(final Boolean sequential) {
// Try to retrieve the Sequential annotation at class level within class hierarchy
final Sequential seq = ClassUtility.getLastClassAnnotation(this.getClass(), Sequential.class);
// First try to get the annotation value (if present
... | [
"private",
"void",
"initSequential",
"(",
"final",
"Boolean",
"sequential",
")",
"{",
"// Try to retrieve the Sequential annotation at class level within class hierarchy",
"final",
"Sequential",
"seq",
"=",
"ClassUtility",
".",
"getLastClassAnnotation",
"(",
"this",
".",
"get... | Define the sequential value.
It will try to load the annotation value, then the parameter given to constructor. If none of them have been used the default false value will be used.
@param sequential the constructor parameter | [
"Define",
"the",
"sequential",
"value",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/command/multi/AbstractMultiCommand.java#L125-L135 |
8,390 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/command/multi/AbstractMultiCommand.java | AbstractMultiCommand.getCommandKey | protected UniqueKey<? extends Command> getCommandKey(final Class<? extends Command> commandClass, final Object... keyPart) {
return Key.create(commandClass, keyPart);
} | java | protected UniqueKey<? extends Command> getCommandKey(final Class<? extends Command> commandClass, final Object... keyPart) {
return Key.create(commandClass, keyPart);
} | [
"protected",
"UniqueKey",
"<",
"?",
"extends",
"Command",
">",
"getCommandKey",
"(",
"final",
"Class",
"<",
"?",
"extends",
"Command",
">",
"commandClass",
",",
"final",
"Object",
"...",
"keyPart",
")",
"{",
"return",
"Key",
".",
"create",
"(",
"commandClass... | Return the command key.
@param commandClass the class of the command to call
@param keyPart the object used as key parts | [
"Return",
"the",
"command",
"key",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/command/multi/AbstractMultiCommand.java#L421-L423 |
8,391 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/object/AbstractObjectModel.java | AbstractObjectModel.buildObject | @SuppressWarnings("unchecked")
protected void buildObject() {
final Class<?> objectType = ClassUtility.findGenericClass(this.getClass(), OBJECT_EXCLUDED_CLASSES);
// If not generic type is defined for Object, object field will remain null
if (objectType != null) {
Object keyPar... | java | @SuppressWarnings("unchecked")
protected void buildObject() {
final Class<?> objectType = ClassUtility.findGenericClass(this.getClass(), OBJECT_EXCLUDED_CLASSES);
// If not generic type is defined for Object, object field will remain null
if (objectType != null) {
Object keyPar... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"protected",
"void",
"buildObject",
"(",
")",
"{",
"final",
"Class",
"<",
"?",
">",
"objectType",
"=",
"ClassUtility",
".",
"findGenericClass",
"(",
"this",
".",
"getClass",
"(",
")",
",",
"OBJECT_EXCLUDED_CL... | Create the default bindable object. | [
"Create",
"the",
"default",
"bindable",
"object",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/object/AbstractObjectModel.java#L72-L101 |
8,392 | JRebirth/JRebirth | org.jrebirth.af/showcase/analyzer/src/main/java/org/jrebirth/af/showcase/analyzer/ui/editor/EditorModel.java | EditorModel.doUnload | public void doUnload(final Wave wave) {
this.eventList = new ArrayList<>();
final Collection<BallModel> list = new ArrayList<>(this.ballMap.values());
for (final BallModel ballModel : list) {
unregisterBall(ballModel);
}
} | java | public void doUnload(final Wave wave) {
this.eventList = new ArrayList<>();
final Collection<BallModel> list = new ArrayList<>(this.ballMap.values());
for (final BallModel ballModel : list) {
unregisterBall(ballModel);
}
} | [
"public",
"void",
"doUnload",
"(",
"final",
"Wave",
"wave",
")",
"{",
"this",
".",
"eventList",
"=",
"new",
"ArrayList",
"<>",
"(",
")",
";",
"final",
"Collection",
"<",
"BallModel",
">",
"list",
"=",
"new",
"ArrayList",
"<>",
"(",
"this",
".",
"ballMa... | Unload the event list.
@param wave the wave received | [
"Unload",
"the",
"event",
"list",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/showcase/analyzer/src/main/java/org/jrebirth/af/showcase/analyzer/ui/editor/EditorModel.java#L85-L93 |
8,393 | JRebirth/JRebirth | org.jrebirth.af/showcase/analyzer/src/main/java/org/jrebirth/af/showcase/analyzer/ui/editor/EditorModel.java | EditorModel.doPlay | public void doPlay(final Wave wave) {
if (!this.playing) {
this.playing = true;
this.timeFrame = 0;
}
if (this.timeFrame < this.eventList.size() - 1) {
showNext(this.eventList.get(this.timeFrame));
} else {
this.playing = false;
}
... | java | public void doPlay(final Wave wave) {
if (!this.playing) {
this.playing = true;
this.timeFrame = 0;
}
if (this.timeFrame < this.eventList.size() - 1) {
showNext(this.eventList.get(this.timeFrame));
} else {
this.playing = false;
}
... | [
"public",
"void",
"doPlay",
"(",
"final",
"Wave",
"wave",
")",
"{",
"if",
"(",
"!",
"this",
".",
"playing",
")",
"{",
"this",
".",
"playing",
"=",
"true",
";",
"this",
".",
"timeFrame",
"=",
"0",
";",
"}",
"if",
"(",
"this",
".",
"timeFrame",
"<"... | Call when event play button is pressed.
@param wave the wave received | [
"Call",
"when",
"event",
"play",
"button",
"is",
"pressed",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/showcase/analyzer/src/main/java/org/jrebirth/af/showcase/analyzer/ui/editor/EditorModel.java#L100-L110 |
8,394 | JRebirth/JRebirth | org.jrebirth.af/showcase/analyzer/src/main/java/org/jrebirth/af/showcase/analyzer/ui/editor/EditorModel.java | EditorModel.doNext | public void doNext(final Wave wave) {
if (this.eventList != null && this.timeFrame + 1 < this.eventList.size()) {
showNext(this.eventList.get(this.timeFrame + 1));
}
} | java | public void doNext(final Wave wave) {
if (this.eventList != null && this.timeFrame + 1 < this.eventList.size()) {
showNext(this.eventList.get(this.timeFrame + 1));
}
} | [
"public",
"void",
"doNext",
"(",
"final",
"Wave",
"wave",
")",
"{",
"if",
"(",
"this",
".",
"eventList",
"!=",
"null",
"&&",
"this",
".",
"timeFrame",
"+",
"1",
"<",
"this",
".",
"eventList",
".",
"size",
"(",
")",
")",
"{",
"showNext",
"(",
"this"... | Call when event next button is pressed.
@param wave the wave received | [
"Call",
"when",
"event",
"next",
"button",
"is",
"pressed",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/showcase/analyzer/src/main/java/org/jrebirth/af/showcase/analyzer/ui/editor/EditorModel.java#L128-L132 |
8,395 | JRebirth/JRebirth | org.jrebirth.af/showcase/analyzer/src/main/java/org/jrebirth/af/showcase/analyzer/ui/editor/EditorModel.java | EditorModel.showNext | private void showNext(final JRebirthEvent event) {
this.timeFrame++;
callCommand(ProcessEventCommand.class, WBuilder.waveData(EditorWaves.EVENT, event));
} | java | private void showNext(final JRebirthEvent event) {
this.timeFrame++;
callCommand(ProcessEventCommand.class, WBuilder.waveData(EditorWaves.EVENT, event));
} | [
"private",
"void",
"showNext",
"(",
"final",
"JRebirthEvent",
"event",
")",
"{",
"this",
".",
"timeFrame",
"++",
";",
"callCommand",
"(",
"ProcessEventCommand",
".",
"class",
",",
"WBuilder",
".",
"waveData",
"(",
"EditorWaves",
".",
"EVENT",
",",
"event",
"... | Show next element.
@param event the next event to show | [
"Show",
"next",
"element",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/showcase/analyzer/src/main/java/org/jrebirth/af/showcase/analyzer/ui/editor/EditorModel.java#L139-L142 |
8,396 | JRebirth/JRebirth | org.jrebirth.af/showcase/analyzer/src/main/java/org/jrebirth/af/showcase/analyzer/ui/editor/EditorModel.java | EditorModel.doStop | public void doStop(final Wave wave) {
for (int i = this.timeFrame; i >= 0; i--) {
hideCurrent(this.eventList.get(this.timeFrame));
}
} | java | public void doStop(final Wave wave) {
for (int i = this.timeFrame; i >= 0; i--) {
hideCurrent(this.eventList.get(this.timeFrame));
}
} | [
"public",
"void",
"doStop",
"(",
"final",
"Wave",
"wave",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"this",
".",
"timeFrame",
";",
"i",
">=",
"0",
";",
"i",
"--",
")",
"{",
"hideCurrent",
"(",
"this",
".",
"eventList",
".",
"get",
"(",
"this",
".",
... | Call when event stop button is pressed.
@param wave the wave received | [
"Call",
"when",
"event",
"stop",
"button",
"is",
"pressed",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/showcase/analyzer/src/main/java/org/jrebirth/af/showcase/analyzer/ui/editor/EditorModel.java#L170-L174 |
8,397 | JRebirth/JRebirth | org.jrebirth.af/showcase/analyzer/src/main/java/org/jrebirth/af/showcase/analyzer/ui/editor/EditorModel.java | EditorModel.registerBall | public void registerBall(final BallModel ballModel) {
if (!this.ballMap.containsKey(ballModel.getEventModel().target())) {
this.ballMap.put(ballModel.getEventModel().target(), ballModel);
view().getPanel().getChildren().add(ballModel.node());
}
} | java | public void registerBall(final BallModel ballModel) {
if (!this.ballMap.containsKey(ballModel.getEventModel().target())) {
this.ballMap.put(ballModel.getEventModel().target(), ballModel);
view().getPanel().getChildren().add(ballModel.node());
}
} | [
"public",
"void",
"registerBall",
"(",
"final",
"BallModel",
"ballModel",
")",
"{",
"if",
"(",
"!",
"this",
".",
"ballMap",
".",
"containsKey",
"(",
"ballModel",
".",
"getEventModel",
"(",
")",
".",
"target",
"(",
")",
")",
")",
"{",
"this",
".",
"ball... | Register a ball model.
@param ballModel the ball model to register | [
"Register",
"a",
"ball",
"model",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/showcase/analyzer/src/main/java/org/jrebirth/af/showcase/analyzer/ui/editor/EditorModel.java#L188-L193 |
8,398 | JRebirth/JRebirth | org.jrebirth.af/showcase/analyzer/src/main/java/org/jrebirth/af/showcase/analyzer/ui/editor/EditorModel.java | EditorModel.unregisterBall | public void unregisterBall(final BallModel ballModel) {
this.ballMap.remove(ballModel.getEventModel().target());
view().getPanel().getChildren().remove(ballModel.node());
} | java | public void unregisterBall(final BallModel ballModel) {
this.ballMap.remove(ballModel.getEventModel().target());
view().getPanel().getChildren().remove(ballModel.node());
} | [
"public",
"void",
"unregisterBall",
"(",
"final",
"BallModel",
"ballModel",
")",
"{",
"this",
".",
"ballMap",
".",
"remove",
"(",
"ballModel",
".",
"getEventModel",
"(",
")",
".",
"target",
"(",
")",
")",
";",
"view",
"(",
")",
".",
"getPanel",
"(",
")... | Unregister a ball model.
@param ballModel the ball model to unregister | [
"Unregister",
"a",
"ball",
"model",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/showcase/analyzer/src/main/java/org/jrebirth/af/showcase/analyzer/ui/editor/EditorModel.java#L200-L203 |
8,399 | JRebirth/JRebirth | org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/concurrent/JRebirthThread.java | JRebirthThread.runIntoJTP | public void runIntoJTP(final JRebirthRunnable runnable) {
if (getFacade().executorService().checkAvailability(runnable.priority())) {
getFacade().executorService().execute(runnable);
LOGGER.log(JTP_QUEUED, runnable.toString());
} else {
getFacade().highPriorityExecut... | java | public void runIntoJTP(final JRebirthRunnable runnable) {
if (getFacade().executorService().checkAvailability(runnable.priority())) {
getFacade().executorService().execute(runnable);
LOGGER.log(JTP_QUEUED, runnable.toString());
} else {
getFacade().highPriorityExecut... | [
"public",
"void",
"runIntoJTP",
"(",
"final",
"JRebirthRunnable",
"runnable",
")",
"{",
"if",
"(",
"getFacade",
"(",
")",
".",
"executorService",
"(",
")",
".",
"checkAvailability",
"(",
"runnable",
".",
"priority",
"(",
")",
")",
")",
"{",
"getFacade",
"(... | Run into thread pool.
If a slot is available the task will be run immediately.<br />
Otherwise it will run as soon as a slot will be available according to the existing task queue
@param runnable the task to run | [
"Run",
"into",
"thread",
"pool",
"."
] | 93f4fc087b83c73db540333b9686e97b4cec694d | https://github.com/JRebirth/JRebirth/blob/93f4fc087b83c73db540333b9686e97b4cec694d/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/concurrent/JRebirthThread.java#L103-L113 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.