public class FileBrowserDialog
extends vialab.SMT.Zone
FileBrowserDialog.FileButton
Modifier and Type | Class and Description |
---|---|
class |
FileBrowserDialog.FileButton
This class represents a single item in the list of files in the file
browser.
|
Modifier and Type | Field and Description |
---|---|
int |
backgroundColour |
int |
borderColour |
static java.lang.String |
FILE_SELECTED
The event ID for "a file was selected" event.
|
static int |
FILE_TYPE_IMAGE |
static int |
FILE_TYPE_OTHER |
static int |
FILE_TYPE_SAVE |
int |
headerColour |
int |
textColour |
int |
transparentAlpha |
int |
transparentColour |
ADD, ALPHA, ALT, AMBIENT, ARC, ARGB, ARROW, BACKSPACE, BASELINE, BEVEL, BEZIER_VERTEX, BLEND, BLUR, BOTTOM, BOX, BREAK, BURN, CENTER, CHATTER, CHORD, CLAMP, CLOSE, CODED, COMPLAINT, CONTROL, CORNER, CORNERS, CROSS, CURVE_VERTEX, CUSTOM, DARKEST, DEG_TO_RAD, DELETE, DIAMETER, DIFFERENCE, DILATE, DIRECTIONAL, DISABLE_DEPTH_MASK, DISABLE_DEPTH_SORT, DISABLE_DEPTH_TEST, DISABLE_NATIVE_FONTS, DISABLE_OPENGL_ERRORS, DISABLE_OPTIMIZED_STROKE, DISABLE_STROKE_PERSPECTIVE, DISABLE_STROKE_PURE, DISABLE_TEXTURE_MIPMAPS, DODGE, DOWN, DXF, ELLIPSE, ENABLE_DEPTH_MASK, ENABLE_DEPTH_SORT, ENABLE_DEPTH_TEST, ENABLE_NATIVE_FONTS, ENABLE_OPENGL_ERRORS, ENABLE_OPTIMIZED_STROKE, ENABLE_STROKE_PERSPECTIVE, ENABLE_STROKE_PURE, ENABLE_TEXTURE_MIPMAPS, ENTER, EPSILON, ERODE, ERROR_BACKGROUND_IMAGE_FORMAT, ERROR_BACKGROUND_IMAGE_SIZE, ERROR_PUSHMATRIX_OVERFLOW, ERROR_PUSHMATRIX_UNDERFLOW, ERROR_TEXTFONT_NULL_PFONT, ESC, EXCLUSION, GIF, GRAY, GROUP, HALF_PI, HAND, HARD_LIGHT, HINT_COUNT, HSB, IMAGE, INVERT, JAVA2D, JPEG, LANDSCAPE, LEFT, LIGHTEST, LINE, LINE_LOOP, LINE_STRIP, LINES, LINUX, MACOSX, MAX_FLOAT, MAX_INT, MIN_FLOAT, MIN_INT, MITER, MODEL, MODELVIEW, MOVE, MULTIPLY, NORMAL, OPAQUE, OPEN, OPENGL, ORTHOGRAPHIC, OTHER, OVERLAY, P2D, P3D, PATH, PDF, PERSPECTIVE, PI, PIE, platformNames, POINT, POINTS, POLYGON, PORTRAIT, POSTERIZE, PROBLEM, PROJECT, PROJECTION, QUAD, QUAD_BEZIER_VERTEX, QUAD_STRIP, QUADS, QUARTER_PI, RAD_TO_DEG, RADIUS, RECT, REPEAT, REPLACE, RETURN, RGB, RIGHT, ROUND, SCREEN, SHAPE, SHIFT, SOFT_LIGHT, SPHERE, SPOT, SQUARE, SUBTRACT, TAB, TARGA, TEXT, THIRD_PI, THRESHOLD, TIFF, TOP, TRIANGLE, TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP, VERTEX, WAIT, WHITESPACE, WINDOWS, X, Y, Z
Constructor and Description |
---|
FileBrowserDialog(java.lang.String header,
java.lang.String folder,
java.lang.String extension,
int columns,
int rows)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(java.awt.event.ActionListener listener)
Add a listener.
|
void |
close()
Close the dialog.
|
static boolean |
isOnScreen() |
void |
nextPage()
Show the next page of items.
|
void |
prevPage()
Show the previous page of items.
|
boolean |
removeListener(java.awt.event.ActionListener listener)
Remove a listener.
|
add, assign, assign, beginTouch, clearZones, clone, clone, clone, contains, drag, drag, drag, drag, drag, drag, drag, drag, drag, drag, dragWithinParent, drawRntCircle, endTouch, fromZoneVector, getActiveTouch, getCentre, getChild, getChildCount, getChildren, getGlobalMatrix, getHeight, getIds, getName, getNumTouches, getOrigin, getParent, getRntRadius, getTouchCollection, getTouches, getTouchMap, getWidth, getX, getY, hSwipe, hSwipe, isActive, isAssigned, isAssigned, isChildActive, isDirect, keyPressed, keyReleased, keyTyped, pinch, pinch, putChildOnTop, remove, resetMatrix, rnt, rnt, rnt, rnt, rotate, rotate, rotateAbout, rotateAbout, rotateAboutCentre, rs, rst, rst, rst, rst, rst, rst, setBodyFromMatrix, setData, setDirect, setLocation, setMatrixFromBody, setName, setRntRadius, setSize, swipeDown, swipeLeft, swipeRight, swipeUp, toss, toZoneVector, unassign, unassign, unassignAll, vSwipe, vSwipe
alpha, ambient, ambient, ambient, ambientLight, ambientLight, applyMatrix, applyMatrix, applyMatrix, applyMatrix, applyMatrix, arc, background, background, background, background, background, background, background, beginCamera, beginRaw, beginShape, beginShape, bezier, bezier, bezierDetail, bezierPoint, bezierTangent, bezierVertex, bezierVertex, blend, blend, blue, box, box, brightness, camera, camera, canDraw, color, color, color, color, color, color, color, color, color, colorMode, colorMode, colorMode, colorMode, copy, copy, curve, curve, curveDetail, curvePoint, curveTangent, curveTightness, curveVertex, curveVertex, directionalLight, displayable, dispose, edge, ellipse, ellipseMode, emissive, emissive, emissive, endCamera, endRaw, endShape, endShape, fill, fill, fill, fill, fill, fill, filter, filter, flush, frustum, get, get, get, getCache, getMatrix, getMatrix, getMatrix, getStyle, getStyle, green, hint, hue, image, image, image, imageMode, init, is2D, is3D, isModified, lerpColor, lightFalloff, lights, lightSpecular, line, line, loadPixels, mask, mask, modelX, modelY, modelZ, noFill, noLights, normal, noSmooth, noStroke, noTint, ortho, ortho, perspective, perspective, point, point, pointLight, popMatrix, popStyle, printCamera, printMatrix, printProjection, pushMatrix, pushStyle, quad, rect, rect, rect, rectMode, red, removeCache, resize, rotate, rotate, rotateX, rotateY, rotateZ, saturation, save, scale, scale, scale, screenX, screenX, screenY, screenY, screenZ, set, set, setCache, setMatrix, setMatrix, setMatrix, setModified, setModified, setParent, setPath, setPrimary, shape, shape, shape, shapeMode, shininess, smooth, specular, specular, specular, sphere, sphereDetail, sphereDetail, spotLight, stroke, stroke, stroke, stroke, stroke, stroke, strokeCap, strokeJoin, strokeWeight, style, text, text, text, text, text, text, text, text, text, text, text, textAlign, textAlign, textAscent, textDescent, textFont, textFont, textLeading, textMode, textSize, texture, textureMode, textWidth, textWidth, textWidth, tint, tint, tint, tint, tint, tint, translate, translate, triangle, updatePixels, updatePixels, vertex, vertex, vertex, vertex, vertex
public static final java.lang.String FILE_SELECTED
public static final int FILE_TYPE_IMAGE
public static final int FILE_TYPE_SAVE
public static final int FILE_TYPE_OTHER
public int backgroundColour
public int borderColour
public int transparentColour
public int transparentAlpha
public int textColour
public int headerColour
public FileBrowserDialog(java.lang.String header, java.lang.String folder, java.lang.String extension, int columns, int rows)
header
- text to be displayed in the header of the dialogfolder
- path to the folder from which the files should be retrievedextension
- filter files by extension, should include the '.' (i.e.
".png", ".sav"), set to null to disable filtering by
extensioncolumns
- number of columns of files in the dialogrows
- number of rows of files in the dialogpublic void close()
CloseButton
public void nextPage()
public void prevPage()
public void addListener(java.awt.event.ActionListener listener)
listener
- listener object to addpublic boolean removeListener(java.awt.event.ActionListener listener)
listener
- listener object to removepublic static boolean isOnScreen()