828 |
*/ |
*/ |
829 |
public String getDialogTitle() |
public String getDialogTitle() |
830 |
{ |
{ |
831 |
return dialogTitle; |
if (dialogTitle == null) |
832 |
|
return getUI().getDialogTitle(this); |
833 |
|
else |
834 |
|
return dialogTitle; |
835 |
} |
} |
836 |
|
|
837 |
/** |
/** |
942 |
*/ |
*/ |
943 |
public String getApproveButtonText() |
public String getApproveButtonText() |
944 |
{ |
{ |
945 |
return approveButtonText; |
if (approveButtonText == null) |
946 |
|
return getUI().getApproveButtonText(this); |
947 |
|
else |
948 |
|
return approveButtonText; |
949 |
} |
} |
950 |
|
|
951 |
/** |
/** |
1264 |
*/ |
*/ |
1265 |
public FileView getFileView() |
public FileView getFileView() |
1266 |
{ |
{ |
|
return fv; |
|
|
} |
|
|
|
|
|
/** |
|
|
* Returns the current file view or, if it is <code>null</code>, a default |
|
|
* file view provided by the UI delegate. |
|
|
* |
|
|
* @return A file view. |
|
|
*/ |
|
|
private FileView getInternalFileView() |
|
|
{ |
|
1267 |
if (fv == null) |
if (fv == null) |
1268 |
return getUI().getFileView(this); |
return getUI().getFileView(this); |
1269 |
return fv; |
else |
1270 |
|
return fv; |
1271 |
} |
} |
1272 |
|
|
1273 |
/** |
/** |
1280 |
*/ |
*/ |
1281 |
public String getName(File f) |
public String getName(File f) |
1282 |
{ |
{ |
1283 |
return getInternalFileView().getName(f); |
return getFileView().getName(f); |
1284 |
} |
} |
1285 |
|
|
1286 |
/** |
/** |
1293 |
*/ |
*/ |
1294 |
public String getDescription(File f) |
public String getDescription(File f) |
1295 |
{ |
{ |
1296 |
return getInternalFileView().getDescription(f); |
return getFileView().getDescription(f); |
1297 |
} |
} |
1298 |
|
|
1299 |
/** |
/** |
1306 |
*/ |
*/ |
1307 |
public String getTypeDescription(File f) |
public String getTypeDescription(File f) |
1308 |
{ |
{ |
1309 |
return getInternalFileView().getTypeDescription(f); |
return getFileView().getTypeDescription(f); |
1310 |
} |
} |
1311 |
|
|
1312 |
/** |
/** |
1318 |
*/ |
*/ |
1319 |
public Icon getIcon(File f) |
public Icon getIcon(File f) |
1320 |
{ |
{ |
1321 |
return getInternalFileView().getIcon(f); |
return getFileView().getIcon(f); |
1322 |
} |
} |
1323 |
|
|
1324 |
/** |
/** |